michael@0: #! gmake michael@0: # michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: # michael@0: # These macros are defined by mozilla's configure script. michael@0: # We define them manually here. michael@0: # michael@0: michael@0: DEFINES += -DSTDC_HEADERS -DHAVE_STRERROR michael@0: michael@0: # michael@0: # Most platforms have snprintf, so it's simpler to list the exceptions. michael@0: # michael@0: HAVE_SNPRINTF = 1 michael@0: # michael@0: # OSF1 V4.0D doesn't have snprintf but V5.0A does. michael@0: # michael@0: ifeq ($(OS_TARGET)$(OS_RELEASE),OSF1V4.0D) michael@0: HAVE_SNPRINTF = michael@0: endif michael@0: ifdef HAVE_SNPRINTF michael@0: DEFINES += -DHAVE_SNPRINTF michael@0: endif michael@0: michael@0: ifeq (,$(filter-out IRIX Linux,$(OS_TARGET))) michael@0: DEFINES += -DHAVE_SYS_CDEFS_H michael@0: endif michael@0: michael@0: ifeq (,$(filter-out DGUX NCR ReliantUNIX SCO_SV SCOOS UNIXWARE,$(OS_TARGET))) michael@0: DEFINES += -DHAVE_SYS_BYTEORDER_H michael@0: endif michael@0: michael@0: # michael@0: # None of the platforms that we are interested in need to michael@0: # define HAVE_MEMORY_H. michael@0: #