Should work. Maybe try adding:
1 2 3
|
#ifndef uint
#define uint unsigned int
#endif
| |
Last edited on
It looks like you are not able to declare the macro simply because you are using the keywords representing data types.
I would try either squishing them together (concatenating them) if that is really the name you want to go with, or use a different name.
Note that it does not give the error for uint - that is because it is a valid data type by itself.
For isntance, this should work:
uint_unsigned_int
or
uintUNSIGNEDint
etc.