| Irrlicht 3D Engine |

IrrCompileConfig.h
Go to the documentation of this file.

    00001 // Copyright (C) 2002-2012 Nikolaus Gebhardt
    00002 // This file is part of the "Irrlicht Engine".
    00003 // For conditions of distribution and use, see copyright notice in irrlicht.h
    00004
    00005 #ifndef __IRR_COMPILE_CONFIG_H_INCLUDED__
    00006 #define __IRR_COMPILE_CONFIG_H_INCLUDED__
    00007
    00009 #define IRRLICHT_VERSION_MAJOR 1
    00010 #define IRRLICHT_VERSION_MINOR 8
    00011 #define IRRLICHT_VERSION_REVISION 0
    00012 // This flag will be defined only in SVN, the official release code will have
    00013 // it undefined
    00014 //#define IRRLICHT_VERSION_SVN -alpha
    00015 #define IRRLICHT_SDK_VERSION "1.8.0"
    00016
    00017 #include <stdio.h> // TODO: Although included elsewhere this is required at least for mingw
    00018
    00029
    00039
    00045
    00046
    00048 //#define _IRR_COMPILE_WITH_SDL_DEVICE_
    00049 #ifdef NO_IRR_COMPILE_WITH_SDL_DEVICE_
    00050 #undef _IRR_COMPILE_WITH_SDL_DEVICE_
    00051 #endif
    00052
    00054 #define _IRR_COMPILE_WITH_CONSOLE_DEVICE_
    00055 #ifdef NO_IRR_COMPILE_WITH_CONSOLE_DEVICE_
    00056 #undef _IRR_COMPILE_WITH_CONSOLE_DEVICE_
    00057 #endif
    00058
    00061 // The windows platform and API support SDL and WINDOW device
    00062 #if defined(_WIN32) || defined(_WIN64) || defined(WIN32) || defined(WIN64)
    00063 #define _IRR_WINDOWS_
    00064 #define _IRR_WINDOWS_API_
    00065 #define _IRR_COMPILE_WITH_WINDOWS_DEVICE_
    00066 #endif
    00067
    00069 #if defined(_WIN32_WCE)
    00070 #define _IRR_WINDOWS_
    00071 #define _IRR_WINDOWS_API_
    00072 #define _IRR_WINDOWS_CE_PLATFORM_
    00073 #define _IRR_COMPILE_WITH_WINDOWS_CE_DEVICE_
    00074 #endif
    00075
    00076 #if defined(_MSC_VER) && (_MSC_VER < 1300)
    00077 #  error "Only Microsoft Visual Studio 7.0 and later are supported."
    00078 #endif
    00079
    00080 // XBox only suppots the native Window stuff
    00081 #if defined(_XBOX)
    00082     #undef _IRR_WINDOWS_
    00083     #define _IRR_XBOX_PLATFORM_
    00084     #define _IRR_WINDOWS_API_
    00085     //#define _IRR_COMPILE_WITH_WINDOWS_DEVICE_
    00086     #undef _IRR_COMPILE_WITH_WINDOWS_DEVICE_
    00087     //#define _IRR_COMPILE_WITH_SDL_DEVICE_
    00088
    00089     #include <xtl.h>
    00090 #endif
    00091
    00092 #if defined(__APPLE__) || defined(MACOSX)
    00093 #if !defined(MACOSX)
    00094 #define MACOSX // legacy support
    00095 #endif
    00096 #define _IRR_OSX_PLATFORM_
    00097 #define _IRR_COMPILE_WITH_OSX_DEVICE_
    00098 #endif
    00099
    00100 #if !defined(_IRR_WINDOWS_API_) && !defined(_IRR_OSX_PLATFORM_)
    00101 #ifndef _IRR_SOLARIS_PLATFORM_
    00102 #define _IRR_LINUX_PLATFORM_
    00103 #endif
    00104 #define _IRR_POSIX_API_
    00105 #define _IRR_COMPILE_WITH_X11_DEVICE_
    00106 #endif
    00107
    00108
    00110 #define _IRR_COMPILE_WITH_JOYSTICK_EVENTS_
    00111 #ifdef NO_IRR_COMPILE_WITH_JOYSTICK_EVENTS_
    00112 #undef _IRR_COMPILE_WITH_JOYSTICK_EVENTS_
    00113 #endif
    00114
    00115
    00117 #define _IRR_MATERIAL_MAX_TEXTURES_ 4
    00118
    00121
    00134 #if defined(_IRR_WINDOWS_API_) && (!defined(__GNUC__) || defined(IRR_COMPILE_WITH_DX9_DEV_PACK))
    00135
    00137
    00139 #define _IRR_COMPILE_WITH_DIRECTINPUT_JOYSTICK_
    00140 #ifdef NO_IRR_COMPILE_WITH_DIRECTINPUT_JOYSTICK_
    00141 #undef _IRR_COMPILE_WITH_DIRECTINPUT_JOYSTICK_
    00142 #endif
    00143
    00145 // #define _IRR_COMPILE_WITH_DIRECT3D_8_
    00146 #define _IRR_COMPILE_WITH_DIRECT3D_9_
    00147
    00148 #ifdef NO_IRR_COMPILE_WITH_DIRECT3D_8_
    00149 #undef _IRR_COMPILE_WITH_DIRECT3D_8_
    00150 #endif
    00151 #ifdef NO_IRR_COMPILE_WITH_DIRECT3D_9_
    00152 #undef _IRR_COMPILE_WITH_DIRECT3D_9_
    00153 #endif
    00154
    00155 #endif
    00156
    00158
    00160 #define _IRR_COMPILE_WITH_OPENGL_
    00161 #ifdef NO_IRR_COMPILE_WITH_OPENGL_
    00162 #undef _IRR_COMPILE_WITH_OPENGL_
    00163 #endif
    00164
    00166
    00168 #define _IRR_COMPILE_WITH_SOFTWARE_
    00169 #ifdef NO_IRR_COMPILE_WITH_SOFTWARE_
    00170 #undef _IRR_COMPILE_WITH_SOFTWARE_
    00171 #endif
    00172
    00174
    00175 #define _IRR_COMPILE_WITH_BURNINGSVIDEO_
    00176 #ifdef NO_IRR_COMPILE_WITH_BURNINGSVIDEO_
    00177 #undef _IRR_COMPILE_WITH_BURNINGSVIDEO_
    00178 #endif
    00179
    00181
    00183 // Only used in LinuxDevice.
    00184 #define _IRR_COMPILE_WITH_X11_
    00185 #ifdef NO_IRR_COMPILE_WITH_X11_
    00186 #undef _IRR_COMPILE_WITH_X11_
    00187 #endif
    00188
    00190
    00192 #if !defined(_IRR_OSX_PLATFORM_) && !defined(_IRR_SOLARIS_PLATFORM_)
    00193 #define _IRR_OPENGL_USE_EXTPOINTER_
    00194 #endif
    00195
    00199 #if defined(_IRR_LINUX_PLATFORM_) && defined(_IRR_COMPILE_WITH_X11_)
    00200 #define _IRR_LINUX_X11_VIDMODE_
    00201 //#define _IRR_LINUX_X11_RANDR_
    00202 #ifdef NO_IRR_LINUX_X11_VIDMODE_
    00203 #undef _IRR_LINUX_X11_VIDMODE_
    00204 #endif
    00205 #ifdef NO_IRR_LINUX_X11_RANDR_
    00206 #undef _IRR_LINUX_X11_RANDR_
    00207 #endif
    00208
    00212 //#define _IRR_LINUX_XCURSOR_
    00213 #ifdef NO_IRR_LINUX_XCURSOR_
    00214 #undef _IRR_LINUX_XCURSOR_
    00215 #endif
    00216
    00217 #endif
    00218
    00220
    00222 #define _IRR_COMPILE_WITH_GUI_
    00223 #ifdef NO_IRR_COMPILE_WITH_GUI_
    00224 #undef _IRR_COMPILE_WITH_GUI_
    00225 #endif
    00226
    00228
    00232 //#define _IRR_WCHAR_FILESYSTEM
    00233 #ifdef NO_IRR_WCHAR_FILESYSTEM
    00234 #undef _IRR_WCHAR_FILESYSTEM
    00235 #endif
    00236
    00238
    00240 #define _IRR_COMPILE_WITH_LIBJPEG_
    00241 #ifdef NO_IRR_COMPILE_WITH_LIBJPEG_
    00242 #undef _IRR_COMPILE_WITH_LIBJPEG_
    00243 #endif
    00244
    00246
    00248 #define _IRR_USE_NON_SYSTEM_JPEG_LIB_
    00249 #ifdef NO_IRR_USE_NON_SYSTEM_JPEG_LIB_
    00250 #undef _IRR_USE_NON_SYSTEM_JPEG_LIB_
    00251 #endif
    00252
    00254
    00256 #define _IRR_COMPILE_WITH_LIBPNG_
    00257 #ifdef NO_IRR_COMPILE_WITH_LIBPNG_
    00258 #undef _IRR_COMPILE_WITH_LIBPNG_
    00259 #endif
    00260
    00262
    00264 #define _IRR_USE_NON_SYSTEM_LIB_PNG_
    00265 #ifdef NO_IRR_USE_NON_SYSTEM_LIB_PNG_
    00266 #undef _IRR_USE_NON_SYSTEM_LIB_PNG_
    00267 #endif
    00268
    00270
    00279 #define _IRR_D3D_NO_SHADER_DEBUGGING
    00280 #ifdef NO_IRR_D3D_NO_SHADER_DEBUGGING
    00281 #undef _IRR_D3D_NO_SHADER_DEBUGGING
    00282 #endif
    00283
    00285
    00289 //#define _IRR_D3D_USE_LEGACY_HLSL_COMPILER
    00290 #ifdef NO_IRR_D3D_USE_LEGACY_HLSL_COMPILER
    00291 #undef _IRR_D3D_USE_LEGACY_HLSL_COMPILER
    00292 #endif
    00293
    00295 //#define _IRR_COMPILE_WITH_CG_
    00296 #ifdef NO_IRR_COMPILE_WITH_CG_
    00297 #undef _IRR_COMPILE_WITH_CG_
    00298 #endif
    00299 #if !defined(_IRR_COMPILE_WITH_OPENGL_) && !defined(_IRR_COMPILE_WITH_DIRECT3D_9_)
    00300 #undef _IRR_COMPILE_WITH_CG_
    00301 #endif
    00302
    00304
    00306 #undef _IRR_USE_NVIDIA_PERFHUD_
    00307
    00309
    00326 #define BURNINGVIDEO_RENDERER_BEAUTIFUL
    00327 //#define BURNINGVIDEO_RENDERER_FAST
    00328 //#define BURNINGVIDEO_RENDERER_ULTRA_FAST
    00329 //#define BURNINGVIDEO_RENDERER_CE
    00330
    00332 //#define IGNORE_DEPRECATED_WARNING
    00333
    00335
    00336 #define _IRR_COMPILE_WITH_IRR_SCENE_LOADER_
    00337 #ifdef NO_IRR_COMPILE_WITH_IRR_SCENE_LOADER_
    00338 #undef _IRR_COMPILE_WITH_IRR_SCENE_LOADER_
    00339 #endif
    00340
    00342
    00344 #define _IRR_COMPILE_WITH_SKINNED_MESH_SUPPORT_
    00345 #ifdef NO_IRR_COMPILE_WITH_SKINNED_MESH_SUPPORT_
    00346 #undef _IRR_COMPILE_WITH_SKINNED_MESH_SUPPORT_
    00347 #endif
    00348
    00349 #ifdef _IRR_COMPILE_WITH_SKINNED_MESH_SUPPORT_
    00350
    00351 #define _IRR_COMPILE_WITH_B3D_LOADER_
    00352 #ifdef NO_IRR_COMPILE_WITH_B3D_LOADER_
    00353 #undef _IRR_COMPILE_WITH_B3D_LOADER_
    00354 #endif
    00355
    00356 #define _IRR_COMPILE_WITH_MS3D_LOADER_
    00357 #ifdef NO_IRR_COMPILE_WITH_MS3D_LOADER_
    00358 #undef _IRR_COMPILE_WITH_MS3D_LOADER_
    00359 #endif
    00360
    00361 #define _IRR_COMPILE_WITH_X_LOADER_
    00362 #ifdef NO_IRR_COMPILE_WITH_X_LOADER_
    00363 #undef _IRR_COMPILE_WITH_X_LOADER_
    00364 #endif
    00365
    00366 #define _IRR_COMPILE_WITH_OGRE_LOADER_
    00367 #ifdef NO_IRR_COMPILE_WITH_OGRE_LOADER_
    00368 #undef _IRR_COMPILE_WITH_OGRE_LOADER_
    00369 #endif
    00370 #endif  // _IRR_COMPILE_WITH_SKINNED_MESH_SUPPORT_
    00371
    00373 #define _IRR_COMPILE_WITH_IRR_MESH_LOADER_
    00374 #ifdef NO_IRR_COMPILE_WITH_IRR_MESH_LOADER_
    00375 #undef _IRR_COMPILE_WITH_IRR_MESH_LOADER_
    00376 #endif
    00377
    00378 #define _IRR_COMPILE_WITH_HALFLIFE_LOADER_
    00379 #ifdef NO_IRR_COMPILE_WITH_HALFLIFE_LOADER_
    00380 #undef _IRR_COMPILE_WITH_HALFLIFE_LOADER_
    00381 #endif
    00382
    00383 #define _IRR_COMPILE_WITH_MD2_LOADER_
    00384 #ifdef NO_IRR_COMPILE_WITH_MD2_LOADER_
    00385 #undef _IRR_COMPILE_WITH_MD2_LOADER_
    00386 #endif
    00387
    00388 #define _IRR_COMPILE_WITH_MD3_LOADER_
    00389 #ifdef NO_IRR_COMPILE_WITH_MD3_LOADER_
    00390 #undef _IRR_COMPILE_WITH_MD3_LOADER_
    00391 #endif
    00392
    00393 #define _IRR_COMPILE_WITH_3DS_LOADER_
    00394 #ifdef NO_IRR_COMPILE_WITH_3DS_LOADER_
    00395 #undef _IRR_COMPILE_WITH_3DS_LOADER_
    00396 #endif
    00397
    00398 #define _IRR_COMPILE_WITH_COLLADA_LOADER_
    00399 #ifdef NO_IRR_COMPILE_WITH_COLLADA_LOADER_
    00400 #undef _IRR_COMPILE_WITH_COLLADA_LOADER_
    00401 #endif
    00402
    00403 #define _IRR_COMPILE_WITH_CSM_LOADER_
    00404 #ifdef NO_IRR_COMPILE_WITH_CSM_LOADER_
    00405 #undef _IRR_COMPILE_WITH_CSM_LOADER_
    00406 #endif
    00407
    00408 #define _IRR_COMPILE_WITH_BSP_LOADER_
    00409 #ifdef NO_IRR_COMPILE_WITH_BSP_LOADER_
    00410 #undef _IRR_COMPILE_WITH_BSP_LOADER_
    00411 #endif
    00412
    00413 #define _IRR_COMPILE_WITH_DMF_LOADER_
    00414 #ifdef NO_IRR_COMPILE_WITH_DMF_LOADER_
    00415 #undef _IRR_COMPILE_WITH_DMF_LOADER_
    00416 #endif
    00417
    00418 #define _IRR_COMPILE_WITH_LMTS_LOADER_
    00419 #ifdef NO_IRR_COMPILE_WITH_LMTS_LOADER_
    00420 #undef _IRR_COMPILE_WITH_LMTS_LOADER_
    00421 #endif
    00422
    00423 #define _IRR_COMPILE_WITH_MY3D_LOADER_
    00424 #ifdef NO_IRR_COMPILE_WITH_MY3D_LOADER_
    00425 #undef _IRR_COMPILE_WITH_MY3D_LOADER_
    00426 #endif
    00427
    00428 #define _IRR_COMPILE_WITH_OBJ_LOADER_
    00429 #ifdef NO_IRR_COMPILE_WITH_OBJ_LOADER_
    00430 #undef _IRR_COMPILE_WITH_OBJ_LOADER_
    00431 #endif
    00432
    00433 #define _IRR_COMPILE_WITH_OCT_LOADER_
    00434 #ifdef NO_IRR_COMPILE_WITH_OCT_LOADER_
    00435 #undef _IRR_COMPILE_WITH_OCT_LOADER_
    00436 #endif
    00437
    00438 #define _IRR_COMPILE_WITH_LWO_LOADER_
    00439 #ifdef NO_IRR_COMPILE_WITH_LWO_LOADER_
    00440 #undef _IRR_COMPILE_WITH_LWO_LOADER_
    00441 #endif
    00442
    00443 #define _IRR_COMPILE_WITH_STL_LOADER_
    00444 #ifdef NO_IRR_COMPILE_WITH_STL_LOADER_
    00445 #undef _IRR_COMPILE_WITH_STL_LOADER_
    00446 #endif
    00447
    00448 #define _IRR_COMPILE_WITH_PLY_LOADER_
    00449 #ifdef NO_IRR_COMPILE_WITH_PLY_LOADER_
    00450 #undef _IRR_COMPILE_WITH_PLY_LOADER_
    00451 #endif
    00452
    00453 #define _IRR_COMPILE_WITH_SMF_LOADER_
    00454 #ifdef NO_IRR_COMPILE_WITH_SMF_LOADER_
    00455 #undef _IRR_COMPILE_WITH_SMF_LOADER_
    00456 #endif
    00457
    00459 #define _IRR_COMPILE_WITH_IRR_WRITER_
    00460 #ifdef NO_IRR_COMPILE_WITH_IRR_WRITER_
    00461 #undef _IRR_COMPILE_WITH_IRR_WRITER_
    00462 #endif
    00463
    00464 #define _IRR_COMPILE_WITH_COLLADA_WRITER_
    00465 #ifdef NO_IRR_COMPILE_WITH_COLLADA_WRITER_
    00466 #undef _IRR_COMPILE_WITH_COLLADA_WRITER_
    00467 #endif
    00468
    00469 #define _IRR_COMPILE_WITH_STL_WRITER_
    00470 #ifdef NO_IRR_COMPILE_WITH_STL_WRITER_
    00471 #undef _IRR_COMPILE_WITH_STL_WRITER_
    00472 #endif
    00473
    00474 #define _IRR_COMPILE_WITH_OBJ_WRITER_
    00475 #ifdef NO_IRR_COMPILE_WITH_OBJ_WRITER_
    00476 #undef _IRR_COMPILE_WITH_OBJ_WRITER_
    00477 #endif
    00478
    00479 #define _IRR_COMPILE_WITH_PLY_WRITER_
    00480 #ifdef NO_IRR_COMPILE_WITH_PLY_WRITER_
    00481 #undef _IRR_COMPILE_WITH_PLY_WRITER_
    00482 #endif
    00483
    00486 #define _IRR_COMPILE_WITH_BMP_LOADER_
    00487 #ifdef NO_IRR_COMPILE_WITH_BMP_LOADER_
    00488 #undef _IRR_COMPILE_WITH_BMP_LOADER_
    00489 #endif
    00490
    00491 #define _IRR_COMPILE_WITH_JPG_LOADER_
    00492 #ifdef NO_IRR_COMPILE_WITH_JPG_LOADER_
    00493 #undef _IRR_COMPILE_WITH_JPG_LOADER_
    00494 #endif
    00495
    00496 #define _IRR_COMPILE_WITH_PCX_LOADER_
    00497 #ifdef NO_IRR_COMPILE_WITH_PCX_LOADER_
    00498 #undef _IRR_COMPILE_WITH_PCX_LOADER_
    00499 #endif
    00500
    00501 #define _IRR_COMPILE_WITH_PNG_LOADER_
    00502 #ifdef NO_IRR_COMPILE_WITH_PNG_LOADER_
    00503 #undef _IRR_COMPILE_WITH_PNG_LOADER_
    00504 #endif
    00505
    00506 #define _IRR_COMPILE_WITH_PPM_LOADER_
    00507 #ifdef NO_IRR_COMPILE_WITH_PPM_LOADER_
    00508 #undef _IRR_COMPILE_WITH_PPM_LOADER_
    00509 #endif
    00510
    00511 #define _IRR_COMPILE_WITH_PSD_LOADER_
    00512 #ifdef NO_IRR_COMPILE_WITH_PSD_LOADER_
    00513 #undef _IRR_COMPILE_WITH_PSD_LOADER_
    00514 #endif
    00515
    00516 // Outcommented because
    00517 // a) it doesn't compile on 64-bit currently
    00518 // b) anyone enabling it should be aware that S3TC compression algorithm which might be used in that loader
    00519 // is patented in the US by S3 and they do collect license fees when it's used in applications.
    00520 // So if you are unfortunate enough to develop applications for US market and their broken patent system be careful.
    00521 // #define _IRR_COMPILE_WITH_DDS_LOADER_
    00522 #ifdef NO_IRR_COMPILE_WITH_DDS_LOADER_
    00523 #undef _IRR_COMPILE_WITH_DDS_LOADER_
    00524 #endif
    00525
    00526 #define _IRR_COMPILE_WITH_TGA_LOADER_
    00527 #ifdef NO_IRR_COMPILE_WITH_TGA_LOADER_
    00528 #undef _IRR_COMPILE_WITH_TGA_LOADER_
    00529 #endif
    00530
    00531 #define _IRR_COMPILE_WITH_WAL_LOADER_
    00532 #ifdef NO_IRR_COMPILE_WITH_WAL_LOADER_
    00533 #undef _IRR_COMPILE_WITH_WAL_LOADER_
    00534 #endif
    00535
    00536 #define _IRR_COMPILE_WITH_LMP_LOADER_
    00537 #ifdef NO_IRR_COMPILE_WITH_LMP_LOADER_
    00538 #undef _IRR_COMPILE_WITH_LMP_LOADER_
    00539 #endif
    00540
    00541 #define _IRR_COMPILE_WITH_RGB_LOADER_
    00542 #ifdef NO_IRR_COMPILE_WITH_RGB_LOADER_
    00543 #undef _IRR_COMPILE_WITH_RGB_LOADER_
    00544 #endif
    00545
    00547 #define _IRR_COMPILE_WITH_BMP_WRITER_
    00548 #ifdef NO_IRR_COMPILE_WITH_BMP_WRITER_
    00549 #undef _IRR_COMPILE_WITH_BMP_WRITER_
    00550 #endif
    00551
    00552 #define _IRR_COMPILE_WITH_JPG_WRITER_
    00553 #ifdef NO_IRR_COMPILE_WITH_JPG_WRITER_
    00554 #undef _IRR_COMPILE_WITH_JPG_WRITER_
    00555 #endif
    00556
    00557 #define _IRR_COMPILE_WITH_PCX_WRITER_
    00558 #ifdef NO_IRR_COMPILE_WITH_PCX_WRITER_
    00559 #undef _IRR_COMPILE_WITH_PCX_WRITER_
    00560 #endif
    00561
    00562 #define _IRR_COMPILE_WITH_PNG_WRITER_
    00563 #ifdef NO_IRR_COMPILE_WITH_PNG_WRITER_
    00564 #undef _IRR_COMPILE_WITH_PNG_WRITER_
    00565 #endif
    00566
    00567 #define _IRR_COMPILE_WITH_PPM_WRITER_
    00568 #ifdef NO_IRR_COMPILE_WITH_PPM_WRITER_
    00569 #undef _IRR_COMPILE_WITH_PPM_WRITER_
    00570 #endif
    00571
    00572 #define _IRR_COMPILE_WITH_PSD_WRITER_
    00573 #ifdef NO_IRR_COMPILE_WITH_PSD_WRITER_
    00574 #undef _IRR_COMPILE_WITH_PSD_WRITER_
    00575 #endif
    00576
    00577 #define _IRR_COMPILE_WITH_TGA_WRITER_
    00578 #ifdef NO_IRR_COMPILE_WITH_TGA_WRITER_
    00579 #undef _IRR_COMPILE_WITH_TGA_WRITER_
    00580 #endif
    00581
    00583
    00584 #define __IRR_COMPILE_WITH_ZIP_ARCHIVE_LOADER_
    00585 #ifdef NO__IRR_COMPILE_WITH_ZIP_ARCHIVE_LOADER_
    00586 #undef __IRR_COMPILE_WITH_ZIP_ARCHIVE_LOADER_
    00587 #endif
    00588 #ifdef __IRR_COMPILE_WITH_ZIP_ARCHIVE_LOADER_
    00589
    00590
    00593 #define _IRR_COMPILE_WITH_ZLIB_
    00594 #ifdef NO_IRR_COMPILE_WITH_ZLIB_
    00595 #undef _IRR_COMPILE_WITH_ZLIB_
    00596 #endif
    00597
    00598
    00601 #define _IRR_USE_NON_SYSTEM_ZLIB_
    00602 #ifdef NO_IRR_USE_NON_SYSTEM_ZLIB_
    00603 #undef _IRR_USE_NON_SYSTEM_ZLIB_
    00604 #endif
    00605
    00606 #define _IRR_COMPILE_WITH_ZIP_ENCRYPTION_
    00607 #ifdef NO_IRR_COMPILE_WITH_ZIP_ENCRYPTION_
    00608 #undef _IRR_COMPILE_WITH_ZIP_ENCRYPTION_
    00609 #endif
    00610
    00611
    00614 #define _IRR_COMPILE_WITH_BZIP2_
    00615 #ifdef NO_IRR_COMPILE_WITH_BZIP2_
    00616 #undef _IRR_COMPILE_WITH_BZIP2_
    00617 #endif
    00618
    00619
    00622 #define _IRR_USE_NON_SYSTEM_BZLIB_
    00623 #ifdef NO_IRR_USE_NON_SYSTEM_BZLIB_
    00624 #undef _IRR_USE_NON_SYSTEM_BZLIB_
    00625 #endif
    00626
    00627
    00629 #define _IRR_COMPILE_WITH_LZMA_
    00630 #ifdef NO_IRR_COMPILE_WITH_LZMA_
    00631 #undef _IRR_COMPILE_WITH_LZMA_
    00632 #endif
    00633 #endif
    00634
    00636 #define __IRR_COMPILE_WITH_MOUNT_ARCHIVE_LOADER_
    00637 #ifdef NO__IRR_COMPILE_WITH_MOUNT_ARCHIVE_LOADER_
    00638 #undef __IRR_COMPILE_WITH_MOUNT_ARCHIVE_LOADER_
    00639 #endif
    00640
    00641 #define __IRR_COMPILE_WITH_PAK_ARCHIVE_LOADER_
    00642 #ifdef NO__IRR_COMPILE_WITH_PAK_ARCHIVE_LOADER_
    00643 #undef __IRR_COMPILE_WITH_PAK_ARCHIVE_LOADER_
    00644 #endif
    00645
    00646 #define __IRR_COMPILE_WITH_NPK_ARCHIVE_LOADER_
    00647 #ifdef NO__IRR_COMPILE_WITH_NPK_ARCHIVE_LOADER_
    00648 #undef __IRR_COMPILE_WITH_NPK_ARCHIVE_LOADER_
    00649 #endif
    00650
    00651 #define __IRR_COMPILE_WITH_TAR_ARCHIVE_LOADER_
    00652 #ifdef NO__IRR_COMPILE_WITH_TAR_ARCHIVE_LOADER_
    00653 #undef __IRR_COMPILE_WITH_TAR_ARCHIVE_LOADER_
    00654 #endif
    00655
    00656 #define __IRR_COMPILE_WITH_WAD_ARCHIVE_LOADER_
    00657 #ifdef NO__IRR_COMPILE_WITH_WAD_ARCHIVE_LOADER_
    00658 #undef __IRR_COMPILE_WITH_WAD_ARCHIVE_LOADER_
    00659 #endif
    00660
    00662
    00665 #if !defined(_IRR_OSX_PLATFORM_) && !defined(_IRR_SOLARIS_PLATFORM_)
    00666     //#define IRRLICHT_FAST_MATH
    00667     #ifdef NO_IRRLICHT_FAST_MATH
    00668     #undef IRRLICHT_FAST_MATH
    00669     #endif
    00670 #endif
    00671
    00672 // Some cleanup and standard stuff
    00673
    00674 #ifdef _IRR_WINDOWS_API_
    00675
    00676 // To build Irrlicht as a static library, you must define _IRR_STATIC_LIB_ in both the
    00677 // Irrlicht build, *and* in the user application, before #including <irrlicht.h>
    00678 #ifndef _IRR_STATIC_LIB_
    00679 #ifdef IRRLICHT_EXPORTS
    00680 #define IRRLICHT_API __declspec(dllexport)
    00681 #else
    00682 #define IRRLICHT_API __declspec(dllimport)
    00683 #endif // IRRLICHT_EXPORT
    00684 #else
    00685 #define IRRLICHT_API
    00686 #endif // _IRR_STATIC_LIB_
    00687
    00688 // Declare the calling convention.
    00689 #if defined(_STDCALL_SUPPORTED)
    00690 #define IRRCALLCONV __stdcall
    00691 #else
    00692 #define IRRCALLCONV __cdecl
    00693 #endif // STDCALL_SUPPORTED
    00694
    00695 #else // _IRR_WINDOWS_API_
    00696
    00697 // Force symbol export in shared libraries built with gcc.
    00698 #if (__GNUC__ >= 4) && !defined(_IRR_STATIC_LIB_) && defined(IRRLICHT_EXPORTS)
    00699 #define IRRLICHT_API __attribute__ ((visibility("default")))
    00700 #else
    00701 #define IRRLICHT_API
    00702 #endif
    00703
    00704 #define IRRCALLCONV
    00705
    00706 #endif // _IRR_WINDOWS_API_
    00707
    00708 // We need to disable DIRECT3D9 support for Visual Studio 6.0 because
    00709 // those $%&$!! disabled support for it since Dec. 2004 and users are complaining
    00710 // about linker errors. Comment this out only if you are knowing what you are
    00711 // doing. (Which means you have an old DX9 SDK and VisualStudio6).
    00712 #ifdef _MSC_VER
    00713 #if (_MSC_VER < 1300 && !defined(__GNUC__))
    00714 #undef _IRR_COMPILE_WITH_DIRECT3D_9_
    00715 #pragma message("Compiling Irrlicht with Visual Studio 6.0, support for DX9 is disabled.")
    00716 #endif
    00717 #endif
    00718
    00719 // XBox does not have OpenGL or DirectX9
    00720 #if defined(_IRR_XBOX_PLATFORM_)
    00721     #undef _IRR_COMPILE_WITH_OPENGL_
    00722     #undef _IRR_COMPILE_WITH_DIRECT3D_9_
    00723 #endif
    00724
    00726 #if defined(_WIN32_WCE)
    00727     #undef _IRR_COMPILE_WITH_OPENGL_
    00728     #undef _IRR_COMPILE_WITH_DIRECT3D_8_
    00729     #undef _IRR_COMPILE_WITH_DIRECT3D_9_
    00730
    00731     #undef BURNINGVIDEO_RENDERER_BEAUTIFUL
    00732     #undef BURNINGVIDEO_RENDERER_FAST
    00733     #undef BURNINGVIDEO_RENDERER_ULTRA_FAST
    00734     #define BURNINGVIDEO_RENDERER_CE
    00735
    00736     #undef _IRR_COMPILE_WITH_WINDOWS_DEVICE_
    00737     #define _IRR_COMPILE_WITH_WINDOWS_CE_DEVICE_
    00738     //#define _IRR_WCHAR_FILESYSTEM
    00739
    00740     #undef _IRR_COMPILE_WITH_IRR_MESH_LOADER_
    00741     //#undef _IRR_COMPILE_WITH_MD2_LOADER_
    00742     #undef _IRR_COMPILE_WITH_MD3_LOADER_
    00743     #undef _IRR_COMPILE_WITH_3DS_LOADER_
    00744     #undef _IRR_COMPILE_WITH_COLLADA_LOADER_
    00745     #undef _IRR_COMPILE_WITH_CSM_LOADER_
    00746     #undef _IRR_COMPILE_WITH_BSP_LOADER_
    00747     #undef _IRR_COMPILE_WITH_DMF_LOADER_
    00748     #undef _IRR_COMPILE_WITH_LMTS_LOADER_
    00749     #undef _IRR_COMPILE_WITH_MY3D_LOADER_
    00750     #undef _IRR_COMPILE_WITH_OBJ_LOADER_
    00751     #undef _IRR_COMPILE_WITH_OCT_LOADER_
    00752     #undef _IRR_COMPILE_WITH_OGRE_LOADER_
    00753     #undef _IRR_COMPILE_WITH_LWO_LOADER_
    00754     #undef _IRR_COMPILE_WITH_STL_LOADER_
    00755     #undef _IRR_COMPILE_WITH_IRR_WRITER_
    00756     #undef _IRR_COMPILE_WITH_COLLADA_WRITER_
    00757     #undef _IRR_COMPILE_WITH_STL_WRITER_
    00758     #undef _IRR_COMPILE_WITH_OBJ_WRITER_
    00759     //#undef _IRR_COMPILE_WITH_BMP_LOADER_
    00760     //#undef _IRR_COMPILE_WITH_JPG_LOADER_
    00761     #undef _IRR_COMPILE_WITH_PCX_LOADER_
    00762     //#undef _IRR_COMPILE_WITH_PNG_LOADER_
    00763     #undef _IRR_COMPILE_WITH_PPM_LOADER_
    00764     #undef _IRR_COMPILE_WITH_PSD_LOADER_
    00765     //#undef _IRR_COMPILE_WITH_TGA_LOADER_
    00766     #undef _IRR_COMPILE_WITH_WAL_LOADER_
    00767     #undef _IRR_COMPILE_WITH_BMP_WRITER_
    00768     #undef _IRR_COMPILE_WITH_JPG_WRITER_
    00769     #undef _IRR_COMPILE_WITH_PCX_WRITER_
    00770     #undef _IRR_COMPILE_WITH_PNG_WRITER_
    00771     #undef _IRR_COMPILE_WITH_PPM_WRITER_
    00772     #undef _IRR_COMPILE_WITH_PSD_WRITER_
    00773     #undef _IRR_COMPILE_WITH_TGA_WRITER_
    00774
    00775 #endif
    00776
    00777 #ifndef _IRR_WINDOWS_API_
    00778     #undef _IRR_WCHAR_FILESYSTEM
    00779 #endif
    00780
    00781 #if defined(__sparc__) || defined(__sun__)
    00782 #define __BIG_ENDIAN__
    00783 #endif
    00784
    00785 #if defined(_IRR_SOLARIS_PLATFORM_)
    00786     #undef _IRR_COMPILE_WITH_JOYSTICK_EVENTS_
    00787 #endif
    00788
    00790 #define __IRR_HAS_S64
    00791 #ifdef NO__IRR_HAS_S64
    00792 #undef __IRR_HAS_S64
    00793 #endif
    00794
    00795 #endif // __IRR_COMPILE_CONFIG_H_INCLUDED__
    00796