stubs.h revision 41c30155
123a0898aSmrg#include <stdio.h>
223a0898aSmrg#include <X11/fonts/fntfilst.h>
323a0898aSmrg#include <X11/fonts/font.h>
423a0898aSmrg
523a0898aSmrg#ifndef True
623a0898aSmrg#define True (-1)
723a0898aSmrg#endif
823a0898aSmrg#ifndef False
923a0898aSmrg#define False (0)
1023a0898aSmrg#endif
1123a0898aSmrg
1223a0898aSmrg/* this probably works for Mach-O too, but probably not for PE */
1341c30155Smrg#if (defined(__APPLE__) || defined(__ELF__)) && defined(__GNUC__) && (__GNUC__ >= 3)
1423a0898aSmrg#define weak __attribute__((weak))
1523a0898aSmrg#else
1623a0898aSmrg#define weak
1741c30155Smrg#ifndef __SUNPRO_C /* Sun compilers use #pragma weak in .c files instead */
1841c30155Smrg#define NO_WEAK_SYMBOLS
1941c30155Smrg#endif
2041c30155Smrg#endif
2141c30155Smrg
2241c30155Smrg/* This is really just a hack for now... __APPLE__ really should be using
2341c30155Smrg * the weak symbols route above, but it's causing an as-yet unresolved issue,
2441c30155Smrg * so we're instead building with flat_namespace.
2541c30155Smrg */
2641c30155Smrg#ifdef __APPLE__
2741c30155Smrg#undef weak
2841c30155Smrg#define weak
2923a0898aSmrg#endif
3023a0898aSmrg
3123a0898aSmrgextern FontPtr find_old_font ( FSID id );
3241c30155Smrgextern int set_font_authorizations ( char **authorizations,
3341c30155Smrg				     int *authlen,
3423a0898aSmrg				     ClientPtr client );
3523a0898aSmrg
3623a0898aSmrgextern unsigned long GetTimeInMillis (void);
3723a0898aSmrg
3823a0898aSmrgextern void ErrorF(const char *format, ...);
3923a0898aSmrgextern void FatalError(const char *format, ...);
4023a0898aSmrg
4123a0898aSmrg/* end of file */
42