winebuild: Add support for PLATFORM_FREEBSD.

This commit is contained in:
Gerald Pfeifer 2009-10-05 02:24:57 +02:00 committed by Alexandre Julliard
parent b16fc0e163
commit d222e8edf1
2 changed files with 8 additions and 1 deletions

View File

@ -124,7 +124,11 @@ enum target_cpu
enum target_platform enum target_platform
{ {
PLATFORM_UNSPECIFIED, PLATFORM_APPLE, PLATFORM_SOLARIS, PLATFORM_WINDOWS PLATFORM_UNSPECIFIED,
PLATFORM_APPLE,
PLATFORM_FREEBSD,
PLATFORM_SOLARIS,
PLATFORM_WINDOWS
}; };
extern char *target_alias; extern char *target_alias;

View File

@ -64,6 +64,8 @@ enum target_cpu target_cpu = CPU_POWERPC;
#ifdef __APPLE__ #ifdef __APPLE__
enum target_platform target_platform = PLATFORM_APPLE; enum target_platform target_platform = PLATFORM_APPLE;
#elif defined(__FreeBSD__)
enum target_platform target_platform = PLATFORM_FREEBSD;
#elif defined(__sun) #elif defined(__sun)
enum target_platform target_platform = PLATFORM_SOLARIS; enum target_platform target_platform = PLATFORM_SOLARIS;
#elif defined(_WIN32) #elif defined(_WIN32)
@ -111,6 +113,7 @@ static const struct
{ {
{ "macos", PLATFORM_APPLE }, { "macos", PLATFORM_APPLE },
{ "darwin", PLATFORM_APPLE }, { "darwin", PLATFORM_APPLE },
{ "freebsd", PLATFORM_FREEBSD },
{ "solaris", PLATFORM_SOLARIS }, { "solaris", PLATFORM_SOLARIS },
{ "windows", PLATFORM_WINDOWS }, { "windows", PLATFORM_WINDOWS },
{ "winnt", PLATFORM_WINDOWS } { "winnt", PLATFORM_WINDOWS }