About Store Forum Documentation Contact



Post Reply 
TOKEN_TYPE enum redefinition
Author Message
Harton Offline
Member

Post: #1
TOKEN_TYPE enum redefinition
Hello,

I had to add a <windows.h> file to our project. When compiled editor, occurred error: 'TOKEN_TYPE' : redefinition; different basic types. Enums of the same name are in the files: ce token.h and winnt.h. Can you change the name of your enum?
02-19-2013 04:22 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: TOKEN_TYPE enum redefinition
please add this:
#define TOKEN_TYPE WinTOKEN_TYPE
#define TokenType WinTokenType
before including windows headers

and this:
#undef TOKEN_TYPE
#undef TokenType
after including windows headers
02-20-2013 03:23 PM
Find all posts by this user Quote this message in a reply
Harton Offline
Member

Post: #3
RE: TOKEN_TYPE enum redefinition
Thanks!
02-20-2013 11:54 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply