klun
Junior Member level 2
error C1016: #if[n]def expected an identifier & IntelliSense: expected an identifier
Can someone help me on the errors?
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 #ifndef (__BIG_ENDIAN__) and !define (__LITTLE_ENDIAN__) *Error in this line* #define __LITTLE_ENDIAN__ #endif namespace { union Converter32 { uint32_t bit_32; struct { #ifdef __LITTLE_ENDIAN__ uint8_t byte3; uint8_t byte2; uint8_t byte1; uint8_t byte0; #else uint8_t byte0; uint8_t byte1; uint8_t byte2; uint8_t byte3; #endif
Can someone help me on the errors?