diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-09-05 07:58:26 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:17:10 -0500 |
commit | 8e9c4e83fa02642d6c8671e9fe0108f417c9268f (patch) | |
tree | 8769c3e4e0463ae1d027f242454b3304db01b84b /source4/lib/replace/replace.h | |
parent | 10d58661be5588e8877c696abf67a932d5a5373c (diff) | |
download | samba-8e9c4e83fa02642d6c8671e9fe0108f417c9268f.tar.gz samba-8e9c4e83fa02642d6c8671e9fe0108f417c9268f.tar.bz2 samba-8e9c4e83fa02642d6c8671e9fe0108f417c9268f.zip |
r18067: some tweaks for irix and hpux
this checks for -AC99 or -c99 to get C99 structure init to work. It's
based on a similar macro metze did for Samba4.
the double sinclude() is weird, but I can't see any other way to use a
common config.m4 between libreplace and all the projects that use it
(This used to be commit 8d80024976bc508d73b42b4cf12315fe8f7a6322)
Diffstat (limited to 'source4/lib/replace/replace.h')
-rw-r--r-- | source4/lib/replace/replace.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/source4/lib/replace/replace.h b/source4/lib/replace/replace.h index 4f0308ce52..1d07361a28 100644 --- a/source4/lib/replace/replace.h +++ b/source4/lib/replace/replace.h @@ -51,9 +51,7 @@ #ifdef HAVE_STDINT_H #include <stdint.h> -#endif - -#ifdef HAVE_INTTYPES_H +#elif HAVE_INTTYPES_H #include <inttypes.h> #endif @@ -257,9 +255,7 @@ char *rep_mkdtemp(char *template); #ifdef HAVE_STDBOOL_H #include <stdbool.h> -#endif - -#ifndef HAVE_BOOL +#elif !defined(HAVE_BOOL) #define __bool_true_false_are_defined typedef int bool; #define false (0) |