From 7ec852b758d490ea54920ea58b3cad18d00537c7 Mon Sep 17 00:00:00 2001 From: Wasin Thonkaew Date: Fri, 16 Oct 2020 16:46:19 +0700 Subject: [PATCH] Add C++ compilation support --- CacheLineSize.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CacheLineSize.h b/CacheLineSize.h index 32bfa0c..797966d 100644 --- a/CacheLineSize.h +++ b/CacheLineSize.h @@ -6,6 +6,12 @@ // Returns the cache line size (in bytes) of the processor, or 0 on failure #include +#ifdef __cplusplus +extern "C" { +#endif size_t CacheLineSize(); +#ifdef __cplusplus +} +#endif -#endif \ No newline at end of file +#endif