Multi-platform includes?


 
Thread Tools Search this Thread
Top Forums Programming Multi-platform includes?
# 1  
Old 08-20-2009
Multi-platform includes?

I know that <cstudio> can also be <stdio> and can be written different ways on Linux then with windows.

I've see some code doing a IFDEF __APPLE__ (I'm guessing, if compiled on a mac do whats between this) Is there one for Linux/Window?
# 2  
Old 08-21-2009
Quote:
I know that <cstudio> can also be <stdio> and can be written different ways on Linux then with windows.
Do you mean <cstdio> ?

Quote:
I've see some code doing a IFDEF __APPLE__ (I'm guessing, if compiled on a mac do whats between this) Is there one for Linux/Window?
Yes, there is. Please check out the following link: HTML Tidy: platform.h Source File

HTH,
Loïc
--


"There are two ways to write error-free programs; only the third one works." -- Alan J. Perlis

Last edited by vbe; 08-21-2009 at 06:58 AM.. Reason: rm URL (rule conformance)
# 3  
Old 08-21-2009
Quote:
Originally Posted by Loic Domaigne
Do you mean <cstdio> ?

Yes, there is. Please check out the following link: HTML Tidy: platform.h Source File

HTH,
Loïc
--


"There are two ways to write error-free programs; only the third one works." -- Alan J. Perlis
Yeah I meant <cstdio> sorry, I made a typo. Thanks for this it looks pretty interesting
# 4  
Old 08-22-2009
Here is probably the best online source for this type of information: Pre-defined C/C++ Compiler Macros
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. Solaris

Application not working in multi core platform

Hi, I have a multiprocess C application (used POSIX library for threads and fork() & exec for creating process) of millions of LOC. 1. Which works fine in single processor machine. 2. Which works fine in multicore machine only if one core is enabled. Problem is, which results an undefined... (2 Replies)
Discussion started by: sreejesh
2 Replies

2. Shell Programming and Scripting

Multi platform script perl or awk

Hi gurus, I am trying to match records in following format: (-,username,domain1.co.uk)\ (-,username,domain2.co.uk) either awk or perl must be used. I am using cygwin. I wrote following code which works and matches both above entries: awk 'BEGIN {musr="(-,username,+.co.uk)"} {if... (8 Replies)
Discussion started by: wakatana
8 Replies

3. UNIX for Advanced & Expert Users

Multi-platform Centralized Patch Management

We have a mix of AIX, HP-UX, Linux (RHEL and SLES), and Solaris in our environment. Currently we have seperate patch management systems for each platform (NIM, SD, Spacewalk, etc), but have started looking for a centralized patch management solution that would work for most, if not all, of our... (0 Replies)
Discussion started by: kknigga
0 Replies
Login or Register to Ask a Question