+2008-12-21 Borut Razem <borut.razem AT siol.net>
+
+ * support/librarian/sdcclib.c: fixed build failure on Mac OS X
+ due to redifinition of symbol __assert
+ sdcclib.c:53:1:warning: "__assert" redefined
+ /Xcode2.5/SDKs/MacOSX10.4u.sdk/usr/include/assert.h:80:1:
+ warning: this is the location of the previous definition
+
2008-12-20 Raphael Neider <rneider AT web.de>
* debugger/mcs51/break.c, debugger/mcs51/cmd.c,
#define NEQ(A,B) strcmp((A),(B))
#if 1
-#include <assert.h>
-#define __assert(COND) do { assert(COND); } while (0)
-#else
-#define __assert(COND) do { (void)(COND); } while (0)
-#endif
-
#define fgets(S, SIZE, STREAM) do { \
char *__s4567 = S; \
char *__res4567 = fgets(__s4567, SIZE, STREAM); \
- __assert(__s4567 == __res4567); \
+ assert(__s4567 == __res4567); \
} while (0)
#define system(CMD) do { \
int __res4568 = system(CMD); \
- __assert(-1 != __res4568); \
+ assert(-1 != __res4568); \
} while (0)
+#endif
int action=OPT_NONE;
FILE *lib, *newlib, *rel, *adb, *libindex;