diff options
Diffstat (limited to 'include/platform.h')
-rw-r--r-- | include/platform.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/platform.h b/include/platform.h index 8abaadd..ee21cf0 100644 --- a/include/platform.h +++ b/include/platform.h @@ -18,11 +18,15 @@ * along with noscrypt. If not, see http://www.gnu.org/licenses/. */ - /* -* Contains platform specific defintions +* Contains platform specific defintions */ +#pragma once + +#ifndef _NC_PLATFORM_H +#define _NC_PLATFORM_H + #if defined(_MSC_VER) || defined(WIN32) || defined(_WIN32) #define _NC_IS_WINDOWS #elif defined(__linux__) || defined(__unix__) || defined(__posix__) @@ -45,4 +49,6 @@ #else #define _nc_fn_inline #pragma message("Warning: No inline keyword defined for this compiler") -#endif
\ No newline at end of file +#endif + +#endif /* !_NC_PLATFORM_H */
\ No newline at end of file |