Skip to content

Commit cb6761e

Browse files
committed
fix warning from -Wundef
1 parent 77cc847 commit cb6761e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ubuntu24.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
run: |
1212
mkdir build &&
1313
cd build &&
14-
CXXFLAGS=-Werror cmake -DFASTFLOAT_TEST=ON -D FASTFLOAT_BENCHMARKS=ON .. &&
14+
"CXXFLAGS=-Werror -Wundef" cmake -DFASTFLOAT_TEST=ON -D FASTFLOAT_BENCHMARKS=ON .. &&
1515
cmake --build . &&
1616
ctest --output-on-failure
1717
- name: Use cmake CXX23

include/fast_float/float_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <type_traits>
1010
#include <system_error>
1111
#ifdef __has_include
12-
#if __has_include(<stdfloat>) && (__cplusplus > 202002L || _MSVC_LANG > 202002L)
12+
#if __has_include(<stdfloat>) && (__cplusplus > 202002L || (defined(_MSVC_LANG) && (_MSVC_LANG > 202002L)))
1313
#include <stdfloat>
1414
#endif
1515
#endif

0 commit comments

Comments
 (0)