The header TA3D_Plateform.h defines TA3D_PLATFORM_MAC/TA3D_PLATFORM_WINDOWS, ... and other defines, useful I suppose.
However, most of them are now useless since we are using CMake.
How can we clean this header safely ?
All defines :
TA3D_PLATFORM_WINDOWS
TA3D_PLATFORM_MSVC
TA3D_PLATFORM_GCC
TA3D_PLATFORM_MINGW
TA3D_PLATFORM_LINUX
TA3D_PLATFORM_MAC
TA3D_PLATFORM_*
TA3D_PLATFORM_*
Damien Gerard
Ta3d & Yuni Developer
Ta3d & Yuni Developer
- zuzuf
- Administrateur - Site Admin
- Posts: 3281
- Joined: Mon Oct 30, 2006 8:49 pm
- Location: Toulouse, France
- Contact:
just add an #ifndef for something like USING_CMAKE, and don't use them if it's defined, otherwise try to guess from Allegro headers.
It may require some defines for msvc (even if it hasn't been tested since Cire has left).
Beware that we can't forget defines for MSVC or MINGW since they used for some compiler specific code (in windows specific code ...) and for FMOD mainly because mingw can only use the C interface whereas all other platforms use the C++ interface (which seems to give better results when you can chose between both interfaces).
It may require some defines for msvc (even if it hasn't been tested since Cire has left).
Beware that we can't forget defines for MSVC or MINGW since they used for some compiler specific code (in windows specific code ...) and for FMOD mainly because mingw can only use the C interface whereas all other platforms use the C++ interface (which seems to give better results when you can chose between both interfaces).
=>;-D Penguin Powered
Who is online
Users browsing this forum: No registered users and 22 guests