Only block comments in headers

This commit is contained in:
stag019
2015-03-07 15:50:09 -05:00
parent b14beeff10
commit e195076793

View File

@@ -1,16 +1,16 @@
#if __STDC_VERSION__ >= 201112L #if __STDC_VERSION__ >= 201112L
// C11 or newer /* C11 or newer */
#define noreturn _Noreturn #define noreturn _Noreturn
#elif __cplusplus >= 201103L #elif __cplusplus >= 201103L
// C++11 or newer /* C++11 or newer */
#define noreturn [[noreturn]] #define noreturn [[noreturn]]
#elif __GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ >= 5)) #elif __GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ >= 5))
// GCC 2.5 or newer /* GCC 2.5 or newer */
#define noreturn __attribute__ ((noreturn)) #define noreturn __attribute__ ((noreturn))
#elif _MSC_VER >= 1310 #elif _MSC_VER >= 1310
// MS Visual Studio 2003/.NET Framework 1.1 or newer /* MS Visual Studio 2003/.NET Framework 1.1 or newer */
#define noreturn _declspec( noreturn) #define noreturn _declspec( noreturn)
#else #else
// unsupported, but no need to throw a fit /* unsupported, but no need to throw a fit */
#define noreturn #define noreturn
#endif #endif