Commit b71150bf authored by Alessandro Rubini's avatar Alessandro Rubini

headers: include wr-api.h in wr architectures

Currently implementations of WR functions do not include wr-api.h.  I
need such consistency check to have compiler help in creating the
wr_operations structures.  Anyways, files should always include its
own header.

I add wr-api.h in arch.h for laziness, so I get all files for sure.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 970fdbaf
#ifndef __ARCH_H__
#define __ARCH_H__
/* This arch exports wr functions, so include this for consistency checking */
#include "../proto-ext-whiterabbit/wr-api.h"
/* Architecture-specific defines, included by top-level stuff */
#define htons(x) (x)
......
#ifndef __ARCH_H__
#define __ARCH_H__
/* This arch exports wr functions, so include this for consistency checking */
#include "../proto-ext-whiterabbit/wr-api.h"
/* Architecture-specific defines, included by top-level stuff */
#include <arpa/inet.h> /* ntohs etc */
......
......@@ -10,7 +10,6 @@
#include <stdint.h>
#include <stdarg.h>
#include <arch/arch.h> /* ntohs and so on */
#include <ppsi/lib.h>
#include <ppsi/ieee1588_types.h>
#include <ppsi/constants.h>
......@@ -19,6 +18,8 @@
#include <ppsi/pp-instance.h>
#include <ppsi/diag-macros.h>
#include <arch/arch.h> /* ntohs and so on -- and wr-api.h for wr archs */
/* We can't include pp-printf.h when building freestading, so have it here */
extern int pp_printf(const char *fmt, ...)
__attribute__((format(printf, 1, 2)));
......
#include <arch/arch.h>
#include <ppsi/ppsi.h>
#include "wr-api.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment