USERNAME_LENGTH and mysql_com.h
Posted by: Simone Guagliumi
Date: October 24, 2013 02:44PM

Hello,

I'm using Connector/C under Embarcadero C++Builder XE2, the compiler give me this warning: [BCC32 Warning] mysql_com.h(31): W8017 Redefinition of 'USERNAME_LENGTH' is not identical mysql.h(71): #include mysql\mysql_com.h

So i searched about that and found out that it still exists in the windows sdk file wtsapi32.h:

#define USERNAME_LENGTH 20

I bypassed that warning by modifyng mysql_com.h like:

#ifdef USERNAME_LENGTH
#undef USERNAME_LENGTH
#define USERNAME_LENGTH (USERNAME_CHAR_LENGTH*SYSTEM_CHARSET_MBMAXLEN)
#endif

Is it good to do so or will it interfere with something?

Options: ReplyQuote


Subject
Views
Written By
Posted
USERNAME_LENGTH and mysql_com.h
2999
October 24, 2013 02:44PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.