Skip to content

Commit 36d5143

Browse files
committed
Fix #if directives
1 parent d5db62c commit 36d5143

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

KoalaBox

src/smoke_api/smoke_api.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,14 @@
2525

2626
#include "build_config.h"
2727

28+
// Nested #if directives lead to unexpected evaluates, so it's best to keep conditions flat.
2829
#if defined(KB_WIN)
2930
#include "koalabox/win.hpp"
30-
#elif defined(KB_LINUX)
31-
#if defined(KB_32)
31+
#elif defined(KB_LINUX) && defined(KB_32)
3232
#include "generated/32/proxy_exports.hpp"
33-
#else
33+
#elif defined(KB_LINUX) && defined(KB_64)
3434
#include "generated/64/proxy_exports.hpp"
3535
#endif
36-
#endif
3736

3837
// Hooking steam_api has shown itself to be less desirable than steamclient
3938
// for the reasons outlined below:

0 commit comments

Comments
 (0)