Browse files

aim.h: Do the same stdbool.h dance

This generates warnings (about redefining bool) on Solaris, but it
compiles, and that's all I can bring myself to care about right now.
  • Loading branch information...
1 parent 13d6a53 commit 63de71c9b2d28eacc7b3d3d3c8f9cd3c561e8a9d @nelhage committed Apr 16, 2010
Showing with 12 additions and 0 deletions.
  1. +12 −0 libfaim/aim.h
View
12 libfaim/aim.h
@@ -16,7 +16,19 @@
#include <faimconfig.h>
#include <aim_cbtypes.h>
+#include "config.h"
+#ifdef HAVE_STDBOOL_H
#include <stdbool.h>
+#else
+#ifndef HAVE__BOOL
+#define _Bool signed char
+#endif
+#define bool _Bool
+#define false 0
+#define true 1
+#define __bool_true_false_are_defined 1
+#endif /* HAVE_STDBOOL_H */
+
#include <stdio.h>
#include <string.h>
#include <fcntl.h>

0 comments on commit 63de71c

Please sign in to comment.