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 CFLAGS += -Wall $(OPTIMIZE_FLAG) -g -I. -pedantic
ifeq ($(CXX_BUILD), 1) ifeq ($(CXX_BUILD), 1)
CFLAGS += -std=c++0x -xc++ CFLAGS += -std=c++0x -xc++ -D__STDC_CONSTANT_MACROS
else else
ifneq ($(findstring icc,$(CC)),) ifneq ($(findstring icc,$(CC)),)
CFLAGS += -std=c99 -D_GNU_SOURCE CFLAGS += -std=c99 -D_GNU_SOURCE

View File

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

View File

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