* support/librarian/sdcclib.c: fixed build failure on Mac OS X
authorborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 21 Dec 2008 13:47:21 +0000 (13:47 +0000)
committerborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sun, 21 Dec 2008 13:47:21 +0000 (13:47 +0000)
  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

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@5294 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
support/librarian/sdcclib.c

index 9afc3e2b367b23c4181badef0277ade67d600400..76803dbd16cda19865dbfab69b88ab7dd13934cf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+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,
index 9367f8f32b462ad06ac9070a6626cee3bdb55873..7b8c1f061e5e7c70809d4b48bb842cde6ecdbec5 100644 (file)
@@ -49,22 +49,17 @@ int NumRelFiles=0;
 #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;