diff options
| author | raysan5 <[email protected]> | 2021-08-15 13:02:53 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-08-15 13:02:53 +0200 |
| commit | aae60e1e440ebd38573195ae81226f01d30f272b (patch) | |
| tree | 4afee2db02e8fa37623b91af3194b9f51a1ce59d /src/camera.h | |
| parent | 848cdb267a7cc52ee0084185eacffdca2e9b3a31 (diff) | |
| download | raylib-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/camera.h')
| -rw-r--r-- | src/camera.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/camera.h b/src/camera.h index 35eda831..08448089 100644 --- a/src/camera.h +++ b/src/camera.h @@ -94,10 +94,6 @@ } CameraProjection; #endif -#ifdef __cplusplus -extern "C" { // Prevents name mangling of functions -#endif - //---------------------------------------------------------------------------------- // Global Variables Definition //---------------------------------------------------------------------------------- @@ -106,6 +102,11 @@ extern "C" { // Prevents name mangling of functions //---------------------------------------------------------------------------------- // Module Functions Declaration //---------------------------------------------------------------------------------- + +#ifdef __cplusplus +extern "C" { // Prevents name mangling of functions +#endif + #if defined(CAMERA_STANDALONE) void SetCameraMode(Camera camera, int mode); // Set camera mode (multiple camera modes available) void UpdateCamera(Camera *camera); // Update camera position for selected mode |
