Index: alien_formats/altium/config.h =================================================================== --- alien_formats/altium/config.h (nonexistent) +++ alien_formats/altium/config.h (revision 35499) @@ -0,0 +1,20 @@ +/* librnd */ +typedef struct rnd_hidlib_s { + int dummy; +} rnd_hidlib_t; + + +#define RND_MSG_ERROR 0 +#define rnd_message(level, fmt, ...) fprintf(stderr, fmt, __VA_ARGS__) + +#define DO_PRAGMA(arg) _Pragma(#arg) +#define TODO(x) DO_PRAGMA(message("TODO: " #x)) + +/* pcb-rnd */ +typedef struct pcb_plug_io_s { + int dummy; +} pcb_plug_io_t; + +typedef enum pcb_plug_iot_e { + PCB_PLUG_IOT_DUMMY=1 +} pcb_plug_iot_t; Index: alien_formats/altium/libucdf/ucdf.h =================================================================== --- alien_formats/altium/libucdf/ucdf.h (revision 35498) +++ alien_formats/altium/libucdf/ucdf.h (revision 35499) @@ -13,3 +13,7 @@ return res; } +static inline int ucdf_test_parse(const char *path) +{ + return 0; +} Index: alien_formats/altium/pcbdoc_ascii.h =================================================================== --- alien_formats/altium/pcbdoc_ascii.h (revision 35498) +++ alien_formats/altium/pcbdoc_ascii.h (revision 35499) @@ -1,5 +1,3 @@ -/*** glue layer ***/ - /* pcbdoc_ascii emulation */ typedef struct altium_field_s { int type; /* derived from ->key */ @@ -16,14 +14,3 @@ int dummy; } altium_tree_t; - -/* librnd */ -typedef struct rnd_hidlib_s { - int dummy; -} rnd_hidlib_t; - -#define RND_MSG_ERROR 0 -#define rnd_message(level, fmt, ...) fprintf(stderr, fmt, __VA_ARGS__) - -#define DO_PRAGMA(arg) _Pragma(#arg) -#define TODO(x) DO_PRAGMA(message("TODO: " #x)) Index: alien_formats/altium/test.c =================================================================== --- alien_formats/altium/test.c (revision 35498) +++ alien_formats/altium/test.c (revision 35499) @@ -1,5 +1,7 @@ #include #include +#include "config.h" +#include "libucdf/ucdf.h" #include "pcbdoc_ascii.h" #include "pcbdoc_bin.h"