Jump to content
Forgot your email address? ×
×
×
  • Create New...
  • 0

FreeBSD Code __WIN32__


Originale

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

Link to comment
  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

6 answers to this question

Recommended Posts

  • 0
  • Bot
#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

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


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.