mirror of
https://github.com/libAthena/athena.git
synced 2025-12-08 13:15:05 +00:00
MSVC build fixes
This commit is contained in:
@@ -62,6 +62,13 @@ struct DNA
|
||||
void read(Athena::io::IStreamReader&); \
|
||||
void write(Athena::io::IStreamWriter&) const; \
|
||||
|
||||
/** Macro to supply count variable to atdna and mute it for other compilers */
|
||||
#ifdef __clang__
|
||||
#define DNA_COUNT(cnt) sizeof(cnt)
|
||||
#else
|
||||
#define DNA_COUNT(cnt) 0
|
||||
#endif
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user