mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-09 22:30:58 +08:00
Fixed compilation warning with Clang < 14 - closes #546
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
- Fixed `undefined symbol` error with GCC 8
|
- Fixed `undefined symbol` error with GCC 8
|
||||||
- Fixed compilation error with universal binaries on Mac
|
- Fixed compilation error with universal binaries on Mac
|
||||||
|
- Fixed compilation warning with Clang < 14
|
||||||
|
|
||||||
## 0.7.0 (2024-04-29)
|
## 0.7.0 (2024-04-29)
|
||||||
|
|
||||||
|
|||||||
@@ -19,9 +19,12 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* target_clones requires glibc */
|
/* target_clones requires glibc */
|
||||||
#if defined(USE_DISPATCH) && defined(__gnu_linux__)
|
#if defined(USE_DISPATCH) && defined(__gnu_linux__) && defined(__has_attribute)
|
||||||
|
/* Use separate line for portability */
|
||||||
|
#if __has_attribute(target_clones)
|
||||||
#define USE_TARGET_CLONES
|
#define USE_TARGET_CLONES
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Apple clang check needed for universal binaries on Mac */
|
/* Apple clang check needed for universal binaries on Mac */
|
||||||
#if defined(USE_DISPATCH) && (defined(HAVE__GET_CPUID) || defined(__apple_build_version__))
|
#if defined(USE_DISPATCH) && (defined(HAVE__GET_CPUID) || defined(__apple_build_version__))
|
||||||
|
|||||||
Reference in New Issue
Block a user