Jump to content
  • 0
Sign in to follow this  
Originale

FreeBSD Code __WIN32__

Question

I try to understand it and code included in c + + FreeBSD

#ifndef __WIN32__ <= Windows
#define SYSLOG_FILENAME "syslog" <= Windows
#define SYSERR_FILENAME "syserr" <= Windows
#define PTS_FILENAME "PTS" <= Windows
#else <= FreeBSD
#define SYSLOG_FILENAME "syslog.txt" <= FreeBSD
#define SYSERR_FILENAME "syserr.txt" <= FreeBSD
#define PTS_FILENAME "PTS.txt" <= FreeBSD
#endif

OR

#ifndef __WIN32__ <= FreeBSD
#define SYSLOG_FILENAME "syslog" <= FreeBSD
#define SYSERR_FILENAME "syserr" <= FreeBSD
#define PTS_FILENAME "PTS" <= FreeBSD
#else <= FreeBSD
#define SYSLOG_FILENAME "syslog.txt" <= Windows
#define SYSERR_FILENAME "syserr.txt" <= Windows
#define PTS_FILENAME "PTS.txt" <= Windows
#endif

Thank you for your answers

Share this post


Link to post

6 answers to this question

Recommended Posts

  • 0
Guest
#ifndef __WIN32__ <= FreeBSD || If not defined __WIN32__ -> If the specific compiler macro isnt set its no windows compiler 
#define SYSLOG_FILENAME "syslog" <= FreeBSD correct
#define SYSERR_FILENAME "syserr" <= FreeBSD correct
#define PTS_FILENAME "PTS" <= FreeBSD correct
#else ITS NOT FREEBSD ON THAT PART 
#define SYSLOG_FILENAME "syslog.txt" <= Windows correct
#define SYSERR_FILENAME "syserr.txt" <= Windows correct
#define PTS_FILENAME "PTS.txt" <= Windows correct
#endif
Kind Regards
MartPwnS

 

Share this post


Link to post
  • 0
Guest

Your welcome :)

 

Kind Regards

MartPwnS

Share this post


Link to post
  • 0

and when it's like that?
 

#ifdef __WIN32__
    if (!win32_init())
    return NULL;
#endif

it is 100% Windows

Share this post


Link to post
  • 0
Guest

Yes only windows.

Share this post


Link to post
Guest
This topic is now closed to further replies.
Sign in to follow this  
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.