Jump to content

Recommended Posts

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
https://metin2.dev/topic/243-freebsd-code-__win32__/
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • 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

 

english_banner.gif

Link to comment
https://metin2.dev/topic/243-freebsd-code-__win32__/#findComment-1735
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.