Set constant macros with define.

This commit is contained in:
Themaister 2011-12-25 01:45:09 +01:00
parent 0ab305156b
commit c8dee57278
3 changed files with 2 additions and 6 deletions

View File

@ -177,7 +177,7 @@ endif
CFLAGS += -Wall $(OPTIMIZE_FLAG) -g -I. -pedantic
ifeq ($(CXX_BUILD), 1)
CFLAGS += -std=c++0x -xc++
CFLAGS += -std=c++0x -xc++ -D__STDC_CONSTANT_MACROS
else
ifneq ($(findstring icc,$(CC)),)
CFLAGS += -std=c99 -D_GNU_SOURCE

View File

@ -145,7 +145,7 @@ endif
CFLAGS += -Wall -O3 -I.
ifeq ($(CXX_BUILD), 1)
CFLAGS += -std=c++0x -xc++
CFLAGS += -std=c++0x -xc++ -D__STDC_CONSTANT_MACROS
else
CFLAGS += -std=gnu99
endif

View File

@ -15,10 +15,6 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __STDC_CONSTANT_MACROS
#define __STDC_CONSTANT_MACROS
#endif
#ifdef __cplusplus
extern "C" {
#endif