Posted on Jan 6, 2012 by
Helpful Lion
Please add a library that tells what platform it is compiled for. For example,
define MILI_PLATFORM_LINUX 1
define MILI_PLATFORM_WINDOWS 2
define MILI_PLATFORM_MAC 3
define MILI_PLATFORM_UNKNOWN 4
if defined WIN32
define MILI_PLATFORM MILI_PLATFORM_WINDOWS
elif defined ....
else
define MILI_PLATFORM MILI_PLATFORM_UNKNOWN
endif
There might be already places where we need this, even in mili. For example, issue22 might need something like this (we should do something similar for the compiler: MILI_COMPILER MILI_COMPILER_GCC etc). CC Esteban because of this.
Status: Accepted
Labels:
Type-Enhancement
Priority-Medium