projects
/
libc-test
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
simple clock_gettime test
[libc-test]
/
src
/
api
/
fmtmsg.c
diff --git
a/src/api/fmtmsg.c
b/src/api/fmtmsg.c
index
1c79c84
..
46a2486
100644
(file)
--- a/
src/api/fmtmsg.c
+++ b/
src/api/fmtmsg.c
@@
-1,4
+1,4
@@
-#ifdef
_XOPEN_SOURCE
+#ifdef
X_FMTMSG
#include <fmtmsg.h>
#define C(n) switch(n){case n:;}
static void f()
#include <fmtmsg.h>
#define C(n) switch(n){case n:;}
static void f()
@@
-22,6
+22,8
@@
C(MM_OK)
C(MM_NOTOK)
C(MM_NOMSG)
C(MM_NOCON)
C(MM_NOTOK)
C(MM_NOMSG)
C(MM_NOCON)
-int(*p_fmtmsg)(long,const char*,int,const char*,const char*,const char*) = fmtmsg;
+{int(*p)(long,const char*,int,const char*,const char*,const char*) = fmtmsg;}
}
}
+#else
+static void f(){}
#endif
#endif