summaryrefslogtreecommitdiffhomepage
path: root/src/utils.h
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2021-08-15 13:02:53 +0200
committerraysan5 <[email protected]>2021-08-15 13:02:53 +0200
commitaae60e1e440ebd38573195ae81226f01d30f272b (patch)
tree4afee2db02e8fa37623b91af3194b9f51a1ce59d /src/utils.h
parent848cdb267a7cc52ee0084185eacffdca2e9b3a31 (diff)
downloadraylib-aae60e1e440ebd38573195ae81226f01d30f272b.tar.gz
raylib-aae60e1e440ebd38573195ae81226f01d30f272b.zip
REVIEWED: `extern "C"` definition position for consistency
Note that `extern "C"` calling convention only affects objects that need to be seen by the linker, in our case only functions... but it would also be required by global variables exposed, if any.
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/utils.h b/src/utils.h
index 50f70420..c9b33181 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -55,9 +55,7 @@
//----------------------------------------------------------------------------------
// Types and Structures Definition
//----------------------------------------------------------------------------------
-#ifdef __cplusplus
-extern "C" { // Prevents name mangling of functions
-#endif
+//...
//----------------------------------------------------------------------------------
// Global Variables Definition
@@ -67,6 +65,10 @@ extern "C" { // Prevents name mangling of functions
//----------------------------------------------------------------------------------
// Module Functions Declaration
//----------------------------------------------------------------------------------
+#ifdef __cplusplus
+extern "C" { // Prevents name mangling of functions
+#endif
+
#if defined(PLATFORM_ANDROID)
void InitAssetManager(AAssetManager *manager, const char *dataPath); // Initialize asset manager from android app
FILE *android_fopen(const char *fileName, const char *mode); // Replacement for fopen() -> Read-only!