Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LIBRARY UNIX/NT

Status
Not open for further replies.

FORAND

Programmer
May 26, 2003
64
CA

Hi there!

Simple question : how can my code see if the machine it is run on is a Unix or NT.
I need this to make a simple "if"

if UNIX_MACHINE,
use libraryXXXX.h
if not
use an_other_libraryXXXX.h

Can you help me????
 
NT normally has a win32 header so it is something like

#ifdef _WIN32
#include "windows-header"
#else
#include "unix header"
#endif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top