[DEFINE] nullptr is some case
This commit is contained in:
parent
69c052df6a
commit
233aaf4bd5
@ -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
|
||||
|
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user