Jump to content
×
×
  • 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
Share on other sites

  • 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

 

english_banner.gif

Link to comment
Share on other sites

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.


  • Metin2 Dev Github
  • Activity

    1. 0

      max level exp

    2. 8

      Quest States Core Crash Item Dupe Bug Fix

    3. 23

      Umbra / Soft4Win / SNap! scammer exposed!

    4. 46

      Ship Defense (Hydra Dungeon)

    5. 10

      Rodnia Glory | A REAL SPEED SERVER | Start 02.09.2022

    6. 0

      Avery seeks an experienced team manager

    7. 0

      Wear (use) item only on specific map

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.