This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
glib.h does not work with sys/cdefs.h
- From: Thorsten Kukuk <kukuk at suse dot de>
- To: libc-alpha at sources dot redhat dot com
- Date: Sat, 11 Sep 2004 16:59:44 +0200
- Subject: glib.h does not work with sys/cdefs.h
- Organization: SuSE Linux AG, Nuernberg, Germany
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