mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 00:14:07 +01:00
librb: Move bool type stuff from ircd stdinc to rb.
This commit is contained in:
parent
1490dd36b5
commit
c5698b0276
2 changed files with 18 additions and 17 deletions
|
@ -70,23 +70,6 @@ char *alloca ();
|
|||
#endif
|
||||
|
||||
|
||||
#ifdef HAVE_STDBOOL_H
|
||||
# include <stdbool.h>
|
||||
#else
|
||||
# ifndef HAVE__BOOL
|
||||
# ifdef __cplusplus
|
||||
typedef bool _Bool;
|
||||
# else
|
||||
# define _Bool signed char
|
||||
# endif
|
||||
# endif
|
||||
# define bool _Bool
|
||||
# define false 0
|
||||
# define true 1
|
||||
# define __bool_true_false_are_defined 1
|
||||
#endif
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -10,6 +10,24 @@
|
|||
#include <signal.h>
|
||||
#include <ctype.h>
|
||||
|
||||
|
||||
#ifdef HAVE_STDBOOL_H
|
||||
#include <stdbool.h>
|
||||
#else
|
||||
#ifndef HAVE__BOOL
|
||||
#ifdef __cplusplus
|
||||
typedef bool _Bool;
|
||||
#else
|
||||
#define _Bool signed char
|
||||
#endif
|
||||
#endif
|
||||
#define bool _Bool
|
||||
#define false 0
|
||||
#define true 1
|
||||
#define __bool_true_false_are_defined 1
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __GNUC__
|
||||
#undef alloca
|
||||
#define alloca __builtin_alloca
|
||||
|
|
Loading…
Reference in a new issue