Skip to content
Snippets Groups Projects
Commit 5cacd068 authored by deuce's avatar deuce
Browse files

Make BYTE, WORD, DWORD, and CHAR typedefs #ifndef the macro of the same

name.
parent 7ba48bad
No related branches found
No related tags found
No related merge requests found
......@@ -178,10 +178,18 @@
/* Portable types that are the same size across all platforms */
#ifndef ODPLAT_WIN32
#ifndef BYTE
typedef unsigned char BYTE; /* Unsigned, 8 bits. */
#endif
#ifndef WORD
typedef unsigned short WORD; /* Unsigned, 16 bits. */
#endif
#ifndef DWORD
typedef unsigned long DWORD; /* Unsigned, 32 bits. */
#endif
#ifndef CHAR
typedef char CHAR; /* Native character representation. */
#endif
#define DWORD_DEFINED
#define WORD_DEFINED
#endif /* !ODPLAT_WIN32 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment