TA3D_PLATFORM_*

Everything related to the code /
Tout ce qui touche au code
Post Reply
milipili
Posts: 545
Joined: Thu Nov 02, 2006 8:52 am
Location: Paris (France)
Contact:

TA3D_PLATFORM_*

Post by milipili » Mon Jun 09, 2008 3:55 pm

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
Damien Gerard
Ta3d & Yuni Developer

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Mon Jun 09, 2008 4:24 pm

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).
=>;-D Penguin Powered

milipili
Posts: 545
Joined: Thu Nov 02, 2006 8:52 am
Location: Paris (France)
Contact:

Post by milipili » Wed Jun 11, 2008 8:25 am

A new define is available : TA3D_PLATFORM_USE_CMAKE
However, some test should be make under Windows and mingw32 to check the changes.

I will set a Windows Env for TA3D as soon as possible
Damien Gerard
Ta3d & Yuni Developer

Post Reply

Who is online

Users browsing this forum: No registered users and 31 guests