glib.h does not work with sys/cdefs.h
Thorsten Kukuk
kukuk@suse.de
Sat Sep 11 15:01:00 GMT 2004
Hi,
glob.h does not work if sys/cdefs.h is included before. Compile the
following short example:
#define _FILE_OFFSET_BITS 64
#include <sys/cdefs.h>
#include <glob.h>
int main () { return 0;}
and you will get:
/usr/include/glob.h:193: error: parse error before "asm"
/usr/include/glob.h:197: error: parse error before "asm"
The generated code is:
extern int glob (__const char *__restrict __pattern, int __flags, int (*__errfunc) (__const char *, int), glob_t *__restrict __pglob) __attribute__ ((__nothrow__)) __asm__ ("glob64");
Any ideas how to fix this?
Thanks,
Thorsten
--
Thorsten Kukuk http://www.suse.de/~kukuk/ kukuk@suse.de
SuSE Linux AG Maxfeldstr. 5 D-90409 Nuernberg
--------------------------------------------------------------------
Key fingerprint = A368 676B 5E1B 3E46 CFCE 2D97 F8FD 4E23 56C6 FB4B
More information about the Libc-alpha
mailing list