From 6ff8bb11774c51fd341b7699a3938fd894995fbf Mon Sep 17 00:00:00 2001 From: vnugent Date: Thu, 25 Apr 2024 17:45:42 -0400 Subject: refactor: Finish support and testing for mbedtls --- include/platform.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'include/platform.h') 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 -- cgit