* support/librarian/sdcclib.c: fixed build failure on Mac OS X
[fw/sdcc] / support / librarian / sdcclib.c
index e8a36d611c53e2b7789b0d712f3be51df1bc7d8a..7b8c1f061e5e7c70809d4b48bb842cde6ecdbec5 100644 (file)
@@ -48,6 +48,19 @@ int NumRelFiles=0;
 #define EQ(A,B) !strcmp((A),(B))
 #define NEQ(A,B) strcmp((A),(B))
 
+#if 1
+#define fgets(S, SIZE, STREAM)  do {                    \
+  char *__s4567 = S;                                    \
+  char *__res4567 = fgets(__s4567, SIZE, STREAM);       \
+  assert(__s4567 == __res4567);                         \
+} while (0)
+
+#define system(CMD)             do {                    \
+  int __res4568 = system(CMD);                          \
+  assert(-1 != __res4568);                              \
+} while (0)
+#endif
+
 int action=OPT_NONE;
 FILE *lib, *newlib, *rel, *adb, *libindex;
 char FLine[MAXLINE+1];