diff options
-rw-r--r-- | display.h | 6 | ||||
-rw-r--r-- | dive.h | 7 | ||||
-rw-r--r-- | divelist.h | 6 | ||||
-rw-r--r-- | profile.h | 6 |
4 files changed, 6 insertions, 19 deletions
@@ -3,12 +3,6 @@ #ifdef __cplusplus extern "C" { -#else -#if __STDC_VERSION__ >= 199901L -#include <stdbool.h> -#else -typedef int bool; -#endif #endif #define SCALE_SCREEN 1.0 @@ -17,6 +17,12 @@ #ifdef __cplusplus extern "C" { +#else +#if __STDC_VERSION__ >= 199901L +#include <stdbool.h> +#else +typedef int bool; +#endif #endif #define O2_IN_AIR 209 // permille @@ -32,7 +38,6 @@ extern "C" { #define SEAWATER_SALINITY 10300 #define FRESHWATER_SALINITY 10000 - /* * Some silly typedefs to make our units very explicit. * diff --git a/divelist.h b/divelist.h index d17ea7c12..01ef613d9 100644 --- a/divelist.h +++ b/divelist.h @@ -3,12 +3,6 @@ #ifdef __cplusplus extern "C" { -#else -#if __STDC_VERSION__ >= 199901L -#include <stdbool.h> -#else -typedef int bool; -#endif #endif struct dive; @@ -3,12 +3,6 @@ #ifdef __cplusplus extern "C" { -#else -#if __STDC_VERSION__ >= 199901L -#include <stdbool.h> -#else -typedef int bool; -#endif #endif #include "dive.h" |