LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   ifdef for suse?? (https://www.linuxquestions.org/questions/suse-opensuse-60/ifdef-for-suse-275995/)

nkshirsagar 01-10-2005 04:00 AM

ifdef for suse??
 
Hi,

Is there any compiler directive I could use to get some code to specifically compile for suse?

like an #ifdef __SUSE__ ?? or something?

-nikhil.

acid_kewpie 01-10-2005 08:00 AM

nope. the name of the distro is at such a totally different level to C code it's unreal.. you really should be able to find a better solution than wanting to do that.

nkshirsagar 01-10-2005 11:12 PM

hmmmm
 
I need it because ...

my code crashes only on suse if LANG or LC_ALL are not set ... (they're NULL) ...

for some reason, on suse, they're null by default..

i need to set them depending on whether the platform is suse.. (and not for other flavours of linux).. thats why i want some suse directive to have those statemenets compile only on suse..

any better solution than doing a strstr after fopen(etc/issue) ??


-nikhil.


All times are GMT -5. The time now is 02:49 PM.