Re: compiler macro that define operating system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Tom Browder wrote:
> 
> On Wed, Sep 15, 2010 at 16:12, gagan1 <gagan2172@xxxxxxxxx> wrote:
>>
>> chaps,
>>                I am using gcc to compile a old peaice of code. that has
>> so
>> many header file with
>> #ifdef WIN_OS
>>   slls
>> #elseif UNIX_OS
>>  abs
>> #else
>>   #error missing os
> 
> Without knowing anything else, and assuming you're on some kind of
> unixish system, I suggest adding "-DUNIX_OS" to your compile flags.
> 
> HTH
> 
> -Tom
> 
> Thomas M. Browder, Jr.
> Niceville, Florida
> USA
> 
> 


Thanks Tom . It works -)
-- 
View this message in context: http://old.nabble.com/compiler-macro-that-define-operating-system-tp29723027p29732912.html
Sent from the gcc - Help mailing list archive at Nabble.com.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux