Skip to content
Snippets Groups Projects
Commit b9e2468f authored by Tim Wickberg's avatar Tim Wickberg
Browse files

Remove CRAPPY_COMPILER block that allowed for a local bool definition.

If your compiler is so bad it can't produce a useable definition of 'bool',
you're going to have a lot of other problems.

No functional change for anyone without CRAPPY_COMPILER defined.
parent 6ad00816
No related branches found
No related tags found
No related merge requests found
...@@ -99,29 +99,6 @@ BEGIN_C_DECLS ...@@ -99,29 +99,6 @@ BEGIN_C_DECLS
#include <time.h> /* for time_t definitions */ #include <time.h> /* for time_t definitions */
#include <unistd.h> #include <unistd.h>
#ifdef CRAPPY_COMPILER
/*
* 'bool' can be implemented in a variety of ways.
* C++ may define it one way.
* <stdbool.h> may declare 'bool' to be a different type, such as
* an enum which is not necessarily compatible with C++.
*
* If your compiler can't resolve 'bool', just define
* CRAPPY_COMPILER at build time in order for SLURM to
* define it's own version of bool.
*/
#undef TRUE
#define TRUE 1
#undef FALSE
#define FALSE 0
typedef unsigned char SLURM_BOOL;
#undef bool
#define bool SLURM_BOOL
#endif
/* Define slurm_addr_t below to avoid including extraneous slurm headers */ /* Define slurm_addr_t below to avoid including extraneous slurm headers */
#ifdef HAVE_SYS_SOCKET_H #ifdef HAVE_SYS_SOCKET_H
# ifndef __slurm_addr_t_defined # ifndef __slurm_addr_t_defined
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment