Switch to using WAPP_PLATFORM_CPP instead of __cplusplus
This commit is contained in:
@@ -2,10 +2,11 @@
|
||||
#define ARRAY_H
|
||||
|
||||
#include "../../common/aliases/aliases.h"
|
||||
#include "../../common/platform/platform.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
#ifdef WAPP_PLATFORM_CPP
|
||||
BEGIN_C_LINKAGE
|
||||
#endif // !__cplusplus
|
||||
#endif // !WAPP_PLATFORM_CPP
|
||||
|
||||
typedef struct int_array IntArray;
|
||||
struct int_array {
|
||||
@@ -45,8 +46,8 @@ struct int_array {
|
||||
})
|
||||
#define wapp_int_array_with_capacity(CAPACITY) ((IntArray){.items = (int[CAPACITY]){0}, .count = 0, .capacity = CAPACITY})
|
||||
|
||||
#ifdef __cplusplus
|
||||
#ifdef WAPP_PLATFORM_CPP
|
||||
END_C_LINKAGE
|
||||
#endif // !__cplusplus
|
||||
#endif // !WAPP_PLATFORM_CPP
|
||||
|
||||
#endif // !ARRAY_H
|
||||
|
||||
Reference in New Issue
Block a user