1
0
mirror of https://github.com/leethomason/tinyxml2.git synced 2026-07-29 15:13:01 +04:00

Compare commits

..

1 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] a77e6a9e3f Initial plan 2025-11-22 23:56:12 +00:00
+29 -11
View File
@@ -36,20 +36,38 @@ distribution.
#ifndef __has_attribute #ifndef __has_attribute
# define __has_attribute(x) 0 # define __has_attribute(x) 0
#endif #endif
#ifndef __has_cpp_attribute #ifdef __cplusplus
# define __has_cpp_attribute(x) 0 # ifndef __has_cpp_attribute
# define __has_cpp_attribute(x) 0
# endif
#else
# ifndef __has_c_attribute
# define __has_c_attribute(x) 0
# endif
#endif #endif
#if defined(_MSC_VER) #ifdef __cplusplus
# define TIXML_FALLTHROUGH (void(0)) # if defined(_MSC_VER)
#elif (__cplusplus >= 201703L && __has_cpp_attribute(fallthrough)) # define TIXML_FALLTHROUGH (void(0))
# define TIXML_FALLTHROUGH [[fallthrough]] # elif (__cplusplus >= 201703L && __has_cpp_attribute(fallthrough))
#elif __has_cpp_attribute(clang::fallthrough) # define TIXML_FALLTHROUGH [[fallthrough]]
# define TIXML_FALLTHROUGH [[clang::fallthrough]] # elif __has_cpp_attribute(clang::fallthrough)
#elif __has_attribute(fallthrough) # define TIXML_FALLTHROUGH [[clang::fallthrough]]
# define TIXML_FALLTHROUGH __attribute__((fallthrough)) # elif __has_attribute(fallthrough)
# define TIXML_FALLTHROUGH __attribute__((fallthrough))
# else
# define TIXML_FALLTHROUGH (void(0))
# endif
#else #else
# define TIXML_FALLTHROUGH (void(0)) # if defined(_MSC_VER)
# define TIXML_FALLTHROUGH (void(0))
# elif __has_c_attribute(fallthrough)
# define TIXML_FALLTHROUGH [[fallthrough]]
# elif __has_attribute(fallthrough)
# define TIXML_FALLTHROUGH __attribute__((fallthrough))
# else
# define TIXML_FALLTHROUGH (void(0))
# endif
#endif #endif