Top "Ifdefine" questions

C++ compiling on Windows and Linux: ifdef switch

I want to run some c++ code on Linux and Windows. There are some pieces of code that I want …

c++ linux windows conditional-compilation ifdefine
SetEnvIf HTTP_HOST not working

I can't get it work this part of .htaccess, the IfDefine never runs. What am I doing wrong, setenvif mod …

.htaccess apache2 setenv http-host ifdefine
Preprocessor and/or Macro way to check iOS SDK version?

I am buliding a dark themed iOS 6 and 7 app. I understand I can call [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; to make …

ios objective-c sdk ifdefine
Apache .htaccess - applying basic authentication conditionally based on environment or hostname

My dev setup: Mac OSX 10.7.4 / Apache 2.2.21 / PHP 5.3.10 I wish to add conditional logic to my .htaccess files depending on dev …

apache .htaccess ifdefine
How to #define based on iOS version?

I have a Constants.h file in my app, where I #define app-wide things for easy access later. I'm having …

ios objective-c c-preprocessor ifdefine
Why include direct.h or sys/stat.h conditionally based on _WIN32 or __linux__?

What will the following code do? Why is it used? #ifdef _WIN32 #include <direct.h> #elif defined __linux__ #…

c ifdefine