🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #8575

Re: #ifdef #if ...

#8575
From: Angel Luis Jiménez Martínez
Date: Fri, 01 Nov 2002 21:24
23 lines
1845 bytes
quantium <quantium@lycos.es> wrote:
> Hola a todos.
> Tengo una peque�a duda, �existe alguna forma de compilar ciertas partes 
> del codigo dependiendo del sistema operativo? lo digo porque en unix y 
> msdos no comparten muchas funciones.
> Seria algo como esto:

> #ifdef _LINUX_
> .....
> #endif


> #ifdef _MSDOS_
> .....
> #endif

> Muchas gracias a todos :-)

gcc -D_LINUX_ pepito.c -o pepito

Esto compilaria el codigo que esta las partes de Linux.

-- 
Technical Details
Message-ID: <apurdo$m84$2@sofora01.uji.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.nuthinbutnews.com!propagator2-sterling!news-in-sterling.newsfeed.com!news-in.nuthinbutnews.com!newsfeed.wirehub.nl!216.65.3.50.MISMATCH!news-out.newsfeeds.com!propagator2-maxim!news-in.spamkiller.net!news.telia-iberia.com!news.rediris.es!news.uv.es!sofora01.uji.es!not-for-mail
References: <3DC2D76F.3080501@lycos.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,7b26d300b91769d4
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-11-01 13:38:04 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.nuthinbutnews.com!propagator2-sterling!news-in-sterling.newsfeed.com!news-in.nuthinbutnews.com!newsfeed.wirehub.nl!216.65.3.50.MISMATCH!news-out.newsfeeds.com!propagator2-maxim!news-in.spamkiller.net!news.telia-iberia.com!news.rediris.es!news.uv.es!sofora01.uji.es!not-for-mail
From: Angel Luis Jiménez Martínez <al026635@alumail.uji.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: #ifdef #if ...
Date: Fri, 1 Nov 2002 21:24:08 +0000 (UTC)
Organization: Universitat Jaume I
Lines: 23
Sender: Angel Luis Jiménez Martínez <al026635@anubis.uji.es>
Message-ID: <apurdo$m84$2@sofora01.uji.es>
References: <3DC2D76F.3080501@lycos.es>
NNTP-Posting-Host: anubis.uji.es
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-2
Content-Transfer-Encoding: 8bit
X-Trace: sofora01.uji.es 1036185848 22788 150.128.40.100 (1 Nov 2002 21:24:08 GMT)
X-Complaints-To: news@marti.uji.es
NNTP-Posting-Date: Fri, 1 Nov 2002 21:24:08 +0000 (UTC)
User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (AIX/4-3)