Git init
[framework/uifw/xorg/lib/libxfont.git] / src / stubs / stubs.h
1 #include <stdio.h>
2 #include <X11/fonts/fntfilst.h>
3 #include <X11/fonts/font.h>
4
5 #ifndef True
6 #define True (-1)
7 #endif
8 #ifndef False
9 #define False (0)
10 #endif
11
12 /* this probably works for Mach-O too, but probably not for PE */
13 #if (defined(__APPLE__) || defined(__ELF__)) && defined(__GNUC__) && (__GNUC__ >= 3)
14 #define weak __attribute__((weak))
15 #else
16 #define weak
17 #ifndef __SUNPRO_C /* Sun compilers use #pragma weak in .c files instead */
18 #define NO_WEAK_SYMBOLS
19 #endif
20 #endif
21
22 /* This is really just a hack for now... __APPLE__ really should be using
23  * the weak symbols route above, but it's causing an as-yet unresolved issue,
24  * so we're instead building with flat_namespace.
25  */
26 #ifdef __APPLE__
27 #undef weak
28 #define weak
29 #endif
30
31 extern FontPtr find_old_font ( FSID id );
32 extern int set_font_authorizations ( char **authorizations, 
33                                      int *authlen, 
34                                      ClientPtr client );
35
36 extern unsigned long GetTimeInMillis (void);
37
38 extern void ErrorF(const char *format, ...);
39 extern void FatalError(const char *format, ...);
40
41 /* end of file */