Mercurial > sdl-ios-xcode
view src/main/win32/exports/gendef.pl @ 1326:9439c2f1da89
From: Hayashi Naoyuki
I tried to compile with gcc on Tru64, and got the following error.
SDL_systimer.c:45:45: error: operator '&&' has no right operand
It succeeds if changing
#if (defined _POSIX_TIMERS && _POSIX_TIMERS > 0)
to
#if (defined _POSIX_TIMERS && _POSIX_TIMERS + 0 > 0)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 03 Feb 2006 07:43:42 +0000 |
parents | 6c7b69218276 |
children |
line wrap: on
line source
#!/usr/bin/perl # # Program to take a set of header files and generate DLL export definitions # Special exports to ignore for this platform $exclude{"SDL_CreateThread_Core"} = 1; while ( ($file = shift(@ARGV)) ) { if ( ! defined(open(FILE, $file)) ) { warn "Couldn't open $file: $!\n"; next; } $file =~ s,.*/,,; while (<FILE>) { if ( / DECLSPEC.* SDLCALL ([^\s\(]+)/ ) { if ( not $exclude{$1} ) { print "\t$1\n"; } } } close(FILE); } # Special exports to include for this platform print "\tSDL_RegisterApp\n"; print "\tSDL_SetModuleHandle\n"; print "\tSDL_UnregisterApp\n";