Index: trunk/src/library.c =================================================================== --- trunk/src/library.c (revision 15922) +++ trunk/src/library.c (revision 15923) @@ -35,6 +35,7 @@ #include "library.h" #include "macro.h" #include "compat_misc.h" +#include "obj_common.h" #define STEP_LIBRARYMENU 10 #define STEP_LIBRARYENTRY 20 Index: trunk/src/macro.h =================================================================== --- trunk/src/macro.h (revision 15922) +++ trunk/src/macro.h (revision 15923) @@ -44,12 +44,4 @@ #define PCB_XOR(a,b) (((a) && !(b)) || (!(a) && (b))) #define PCB_SQUARE(x) ((float) (x) * (float) (x)) -/* a pointer is created from index addressing because the base pointer - * may change when new memory is allocated; - * - * all data is relative to an objects name 'top' which can be either - * PCB or PasteBuffer */ -#define PCB_END_LOOP }} while (0) -#define PCB_ENDALL_LOOP }} while (0); }} while(0) - #endif Index: trunk/src/obj_common.h =================================================================== --- trunk/src/obj_common.h (revision 15922) +++ trunk/src/obj_common.h (revision 15923) @@ -242,4 +242,12 @@ (obj->override_color[0] == '#') \ ) +/* a pointer is created from index addressing because the base pointer + * may change when new memory is allocated; + * + * all data is relative to an objects name 'top' which can be either + * PCB or PasteBuffer */ +#define PCB_END_LOOP }} while (0) +#define PCB_ENDALL_LOOP }} while (0); }} while(0) + #endif