summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-04-08 04:07:22 +0000
committerTim Potter <tpot@samba.org>2003-04-08 04:07:22 +0000
commit09e9e5a2fd510e01262a733384b23d0e1a1bf541 (patch)
tree5bb28a0220308106cd949146995d66d7f71a96c3 /source3/include
parent65289c353b77b31a746bcd36fb7fcbef01947187 (diff)
downloadsamba-09e9e5a2fd510e01262a733384b23d0e1a1bf541.tar.gz
samba-09e9e5a2fd510e01262a733384b23d0e1a1bf541.tar.bz2
samba-09e9e5a2fd510e01262a733384b23d0e1a1bf541.zip
Added some preprocessor tricks to stop TRUE and FALSE from continually
creeping back in to the source. Use True and False instead. (This used to be commit 5a5a7ce7479a56ca2d472658511a47c9147c0d5b)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/includes.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index bf71ed54cf..61aee975c0 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -1274,5 +1274,18 @@ void free_kerberos_etypes(krb5_context context, krb5_enctype *enctypes);
BOOL krb5_get_smb_session_key(krb5_context context, krb5_auth_context auth_context, uint8 session_key[16]);
#endif /* HAVE_KRB5 */
-#endif /* _INCLUDES_H */
+/* TRUE and FALSE are part of the C99 standard and gcc, but
+ unfortunately many vendor compilers don't support them. Use True
+ and False instead. */
+
+#ifdef TRUE
+#undef TRUE
+#endif
+#define TRUE __ERROR__XX__DONT_USE_TRUE
+#ifdef FALSE
+#undef FALSE
+#endif
+#define FALSE __ERROR__XX__DONT_USE_FALSE
+
+#endif /* _INCLUDES_H */