home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c      Meh, in C you gotta define EVERYTHING      243,242 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 242,918 of 243,242   
   Lawrence =?iso-8859-13?q?D=FFOlivei to Michael Sanders   
   Re: OS Macros   
   08 Jan 26 20:11:57   
   
   From: ldo@nz.invalid   
      
   On Thu, 8 Jan 2026 15:56:15 -0000 (UTC), Michael Sanders wrote:   
      
   > #ifdef __OpenBSD__   
   > #ifdef __NetBSD__   
   > #ifdef __FreeBSD__   
   > #ifdef __DragonFly__   
   >   
   > #ifdef __linux__   
   > #ifdef __linux   
      
   300-odd Linux distros can all be covered by a single ifdef, while less   
   than half a dozen BSD variants each require their own.   
      
   > #ifdef __APPLE__   
      
   I like this one from the CMake scripts for Blender:   
      
       if(UNIX AND NOT APPLE)   
      
   Tells you everything you need to know about the “Unix” support in   
   Apple’s OS ...   
      
   > #ifdef _WIN32   
   > #ifdef _WIN64   
      
   Actually there is no “Win64”. There is some kind of 64-bit adaptation   
   of “Win32”, but it’s still just “Win32” ...   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca