From 86935aab5c2cbe7984a7d464e5596027cc1b097f Mon Sep 17 00:00:00 2001 From: deuce <> Date: Tue, 10 Jul 2007 22:53:40 +0000 Subject: [PATCH] Check for /usr/include/inttypes.h to define HAS_INTTYPES_H --- src/build/Common.gmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/build/Common.gmake b/src/build/Common.gmake index d19c0851d4..83c59a5558 100644 --- a/src/build/Common.gmake +++ b/src/build/Common.gmake @@ -215,6 +215,10 @@ else machine := $(os).$(machine) endif +ifeq ($(shell if [ -f /usr/include/inttypes.h ] ; then echo YES ; fi),YES) + CFLAGS += -DHAS_INTTYPES_H +endif + LIBODIR := $(CCPRE).$(machine).lib.$(BUILDPATH) OBJODIR := $(CCPRE).$(machine).obj.$(BUILDPATH) MTOBJODIR := $(CCPRE).$(machine).obj.$(BUILDPATH)-mt -- GitLab