Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 #! gmake
2 #
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 #
8 # These macros are defined by mozilla's configure script.
9 # We define them manually here.
10 #
12 DEFINES += -DSTDC_HEADERS -DHAVE_STRERROR
14 #
15 # Most platforms have snprintf, so it's simpler to list the exceptions.
16 #
17 HAVE_SNPRINTF = 1
18 #
19 # OSF1 V4.0D doesn't have snprintf but V5.0A does.
20 #
21 ifeq ($(OS_TARGET)$(OS_RELEASE),OSF1V4.0D)
22 HAVE_SNPRINTF =
23 endif
24 ifdef HAVE_SNPRINTF
25 DEFINES += -DHAVE_SNPRINTF
26 endif
28 ifeq (,$(filter-out IRIX Linux,$(OS_TARGET)))
29 DEFINES += -DHAVE_SYS_CDEFS_H
30 endif
32 ifeq (,$(filter-out DGUX NCR ReliantUNIX SCO_SV SCOOS UNIXWARE,$(OS_TARGET)))
33 DEFINES += -DHAVE_SYS_BYTEORDER_H
34 endif
36 #
37 # None of the platforms that we are interested in need to
38 # define HAVE_MEMORY_H.
39 #