소스 검색

[raymath] Add extern "C" to raymath header for C++ (#3978)

* Update raylib_api.* by CI

* Add an extern C to raymath to prevent warnings in C++

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
pull/3981/head
Jeffery Myers 9 달 전
committed by GitHub
부모
커밋
3d885ef919
No known key found for this signature in database GPG 키 ID: B5690EEEBB952194
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. +8
    -0
      src/raymath.h

+ 8
- 0
src/raymath.h 파일 보기

@ -77,6 +77,11 @@
#endif
#endif
#if defined(__cplusplus)
extern "C" { // Prevents name mangling of functions
#endif
//----------------------------------------------------------------------------------
// Defines and Macros
//----------------------------------------------------------------------------------
@ -2523,5 +2528,8 @@ RMAPI int QuaternionEquals(Quaternion p, Quaternion q)
return result;
}
#if defined(__cplusplus)
}
#endif
#endif // RAYMATH_H

불러오는 중...
취소
저장