Skip to content

Commit 350afc2

Browse files
committed
hmm!
1 parent ea0e09b commit 350afc2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • code/globalincs/toolchain

code/globalincs/toolchain/gcc.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
*/
1919
#pragma once
2020

21-
#if defined(__GNUC__)
21+
// per toolchain.h, clang takes precedence over gcc if they are both defined
22+
#if defined(__GNUC__) && !defined(__clang__)
2223

2324
#define SCP_FORMAT_STRING
2425
#define SCP_FORMAT_STRING_ARGS(x,y) __attribute__((format(printf, x, y)))

0 commit comments

Comments
 (0)