From 0fec83ebc89bd6b86f772d942b7c39b13f773d3a Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 12 Jun 2014 13:45:06 -0400 Subject: Add a C89 compliance test for the headers. Technically we still require a couple things from C99 like "bool", but it works with -std=c89 under gcc. --- libdimension/dimension.h | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) (limited to 'libdimension/dimension.h') diff --git a/libdimension/dimension.h b/libdimension/dimension.h index 57458c1..19b43bc 100644 --- a/libdimension/dimension.h +++ b/libdimension/dimension.h @@ -40,26 +40,11 @@ #define DIMENSION_H #ifdef __cplusplus -// We've been included from a C++ file; mark everything here as extern "C" +/* We've been included from a C++ file; mark everything here as extern "C" */ extern "C" { #endif -// Common macros - -/** - * @internal - * @def DMNSN_FUNC - * @brief Expands to the name of the current function - */ -#ifdef __GNUC__ - #define DMNSN_FUNC __PRETTY_FUNCTION__ -#elif __STDC_VERSION__ >= 199901L - #define DMNSN_FUNC __func__ -#else - #define DMNSN_FUNC "" -#endif - -// Common types +/* Common types */ /** * Generic callback type. @@ -73,7 +58,7 @@ typedef void dmnsn_callback_fn(void *ptr); */ typedef void dmnsn_free_fn(void *ptr); -// Include all the libdimension headers +/* Include all the libdimension headers */ #include #include #include @@ -112,4 +97,4 @@ typedef void dmnsn_free_fn(void *ptr); } #endif -#endif // DIMENSION_H +#endif /* DIMENSION_H */ -- cgit v1.2.3