diff -Naur CEGUI-0.7.5/Samples/common/src/CEGuiSample.cpp CEGUI-0.7.5-haiku/Samples/common/src/CEGuiSample.cpp
|
old
|
new
|
|
| 35 | 35 | // includes for renderer selector classes |
| 36 | 36 | #if defined( __WIN32__ ) || defined( _WIN32 ) |
| 37 | 37 | # include "Win32CEGuiRendererSelector.h" |
| 38 | | #elif defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) |
| | 38 | #elif defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__HAIKU__) |
| 39 | 39 | # ifdef CEGUI_SAMPLES_USE_GTK2 |
| 40 | 40 | # include "GTK2CEGuiRendererSelector.h" |
| 41 | 41 | # else |
diff -Naur CEGUI-0.7.5/cegui/include/CEGUIDynamicModule.h CEGUI-0.7.5-haiku/cegui/include/CEGUIDynamicModule.h
|
old
|
new
|
|
| 43 | 43 | struct HINSTANCE__; |
| 44 | 44 | typedef struct HINSTANCE__* hInstance; |
| 45 | 45 | |
| 46 | | #elif defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) |
| | 46 | #elif defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__HAIKU__) |
| 47 | 47 | # define DYNLIB_HANDLE void* |
| 48 | 48 | # define DYNLIB_LOAD( a ) dlopen( a, RTLD_LAZY ) |
| 49 | 49 | # define DYNLIB_GETSYM( a, b ) dlsym( a, b ) |
diff -Naur CEGUI-0.7.5/cegui/src/CEGUIDynamicModule.cpp CEGUI-0.7.5-haiku/cegui/src/CEGUIDynamicModule.cpp
|
old
|
new
|
|
| 46 | 46 | # include "macPlugins.h" |
| 47 | 47 | #endif |
| 48 | 48 | |
| 49 | | #if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) |
| | 49 | #if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__HAIKU__) |
| 50 | 50 | # include "dlfcn.h" |
| 51 | 51 | #endif |
| 52 | 52 | |
| … |
… |
|
| 64 | 64 | return; |
| 65 | 65 | } // if(name.empty()) |
| 66 | 66 | |
| 67 | | #if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) |
| | 67 | #if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__HAIKU__) |
| 68 | 68 | #if defined(CEGUI_HAS_VERSION_SUFFIX) || defined(CEGUI_HAS_BUILD_SUFFIX) |
| 69 | 69 | // check if we are being asked to open a CEGUI .so, if so postfix the |
| 70 | 70 | // name with our package version |
diff -Naur CEGUI-0.7.5/cegui/src/CEGUISystem.cpp CEGUI-0.7.5-haiku/cegui/src/CEGUISystem.cpp
|
old
|
new
|
|
| 110 | 110 | return timeGetTime() / 1000.0; |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | | #elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) |
| | 113 | #elif defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__HAIKU__) |
| 114 | 114 | #include <sys/time.h> |
| 115 | 115 | double SimpleTimer::currentTime() |
| 116 | 116 | { |
diff -Naur CEGUI-0.7.5/configure.ac CEGUI-0.7.5-haiku/configure.ac
|
old
|
new
|
|
| 60 | 60 | # Checks for libraries (skip on mingw32). |
| 61 | 61 | if test x$MINGW32 != xyes; then |
| 62 | 62 | AC_CHECK_LIB([dl], [dlopen]) |
| 63 | | AC_CHECK_LIB([pthread], [pthread_create],, AC_MSG_ERROR([cannot find pthread library])) |
| | 63 | AC_CHECK_LIB([root], [pthread_create],, AC_MSG_ERROR([cannot find pthread library])) |
| 64 | 64 | fi |
| 65 | 65 | |
| 66 | 66 | CEGUI_CODE_OPTIONS |