warning C4005: macro redefinition in Visual C

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

someuser77

Thread Starter
Joined
Jun 26, 2005
Messages
6
hello.
i am using typedef to define a boolean variable in Visual C Standard Edition:
Code:
#define FALSE 0
#define TRUE 1
typedef int boolean;
but when i try to build my project i get the error:
warning C4005: 'TRUE' : macro redefinition
c:\program files\microsoft visual studio\vc98\include\allegro\base.h(50) : see previous definition of 'TRUE'
is there a way i can use my definition in my program and leave the base.h definition for the functions used in there?
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Top