Fixed USE_ definitions
This commit is contained in:
parent
c9c69a0a7e
commit
5315f5694d
3 changed files with 22 additions and 8 deletions
|
@ -412,7 +412,7 @@ if(APPLE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(BSD)
|
if(BSD)
|
||||||
add_definitions(-DBSD)
|
add_definitions(-DUSE_BSD)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(BEOS)
|
if(BEOS)
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
//
|
//
|
||||||
/**@name myendian.h - The endian-specific headerfile. */
|
/**@name myendian.h - The endian-specific headerfile. */
|
||||||
//
|
//
|
||||||
// (c) Copyright 2000-2004 by Lutz Sammer
|
// (c) Copyright 2000-2011 by Lutz Sammer and Pali Rohár
|
||||||
//
|
//
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// This program is free software; you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License as published by
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
@ -142,11 +142,11 @@ extern unsigned inline _FetchLE32(unsigned char **pp) {
|
||||||
----------------------------------------------------------------------------*/
|
----------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#if !defined(__CYGWIN__) && !defined(__MINGW32__) && !defined(_MSC_VER)
|
#if !defined(__CYGWIN__) && !defined(__MINGW32__) && !defined(_MSC_VER)
|
||||||
#if defined(BSD)
|
#if defined(USE_BSD)
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#else
|
#else
|
||||||
#include <endian.h>
|
#include <endian.h>
|
||||||
#endif // BSD
|
#endif // USE_BSD
|
||||||
|
|
||||||
#if defined(__BYTE_ORDER) && __BYTE_ORDER == __BIG_ENDIAN
|
#if defined(__BYTE_ORDER) && __BYTE_ORDER == __BIG_ENDIAN
|
||||||
#include <byteswap.h>
|
#include <byteswap.h>
|
||||||
|
|
|
@ -782,14 +782,28 @@ int main(int argc, char **argv)
|
||||||
#ifdef USE_MNG
|
#ifdef USE_MNG
|
||||||
"MNG "
|
"MNG "
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_MAEMO
|
#ifdef USE_OPENGL
|
||||||
"MAEMO "
|
"OPENGL "
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_GLES
|
#ifdef USE_GLES
|
||||||
"GLES "
|
"GLES "
|
||||||
#endif
|
#endif
|
||||||
""
|
#ifdef USE_WIN32
|
||||||
;
|
"WIN32 "
|
||||||
|
#endif
|
||||||
|
#ifdef USE_BSD
|
||||||
|
"BSD "
|
||||||
|
#endif
|
||||||
|
#ifdef USE_BEOS
|
||||||
|
"BEOS "
|
||||||
|
#endif
|
||||||
|
#ifdef USE_MAC
|
||||||
|
"MAC "
|
||||||
|
#endif
|
||||||
|
#ifdef USE_MAEMO
|
||||||
|
"MAEMO "
|
||||||
|
#endif
|
||||||
|
"";
|
||||||
|
|
||||||
#ifdef USE_BEOS
|
#ifdef USE_BEOS
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue