1 #include <stdarg.h> 2 #include <stdbool.h> 3 #include <stdint.h> 4 #include <stdlib.h> 5 6 #if (defined(PLATFORM_WIN) || defined(M_32)) 7 enum BarType { 8 A, 9 B, 10 C, 11 }; 12 typedef uint32_t BarType; 13 #endif 14 15 #if (defined(PLATFORM_UNIX) && defined(X11)) 16 enum FooType { 17 A, 18 B, 19 C, 20 }; 21 typedef uint32_t FooType; 22 #endif 23 24 #if (defined(PLATFORM_UNIX) && defined(X11)) 25 typedef struct FooHandle { 26 FooType ty; 27 int32_t x; 28 float y; 29 } FooHandle; 30 #endif 31 32 #if (defined(PLATFORM_WIN) || defined(M_32)) 33 typedef struct BarHandle { 34 BarType ty; 35 int32_t x; 36 float y; 37 } BarHandle; 38 #endif 39 40 #if (defined(PLATFORM_UNIX) && defined(X11)) 41 void root(FooHandle a); 42 #endif 43 44 #if (defined(PLATFORM_WIN) || defined(M_32)) 45 void root(BarHandle a); 46 #endif 47