[DEFINE] nullptr is some case

This commit is contained in:
Edouard DUPIN 2015-02-20 21:40:03 +01:00
parent 69c052df6a
commit 233aaf4bd5
2 changed files with 10 additions and 0 deletions

View File

@ -41,9 +41,14 @@
#endif
#endif
#ifdef ETK_ENABLE_NULLPTR
#define nullptr NULL
#endif
#include <etk/stdTools.h>
#ifndef _WIN32
typedef float float_t;
#endif
#endif

View File

@ -46,6 +46,11 @@ def create(target):
if target.name != "Windows":
myModule.add_export_flag_LD("-ldl -rdynamic")
if target.config["compilator"] == "gcc" \
and target.xx_version < 4007000:
myModule.add_export_flag_CC("-DETK_ENABLE_NULLPTR")
if target.name=="Windows":
None
elif target.name=="Android":