OSTYPE in FvwmCpp

I’m totally new to cpp, so I’m sorry in advance if this is common knowledge.

I have made a file menu.cpp, which content is:

#ifndef OSTYPE
        #error NO OS!
AddToMenu RootMenu
+ "OSTYPE" Nop

In my .fvwm2rc I have:

FvwmCpp $[FVWM_USERDIR]/work/menu.cpp

From the FvwmCpp man-page I read:

FvwmCpp defines some values for use in the pre-processor file:
OSTYPE The operating system for CLIENTHOST.

What all this produces is literally the word OSTYPE in my rootmenu.

What’s the deal here? I was expecting something like “FreeBSD” in there.

[color=red]Edited by theBlackDragon:
–> You call this a basic question? :open_mouth: Moved from Basic questions.[/color]

Ugh, you’re dregdging up some dark memories here. I haven’t used this module in years, so I apologise for any inaccuracies in advance. As far as I can recall OSTYPE is something you have to define:

#define OSTYPE linux
#define CLIENTHOST myhostname

– Thomas Adam

Heh… for some reason I hear that alot. :slight_smile:

Anywho, it is curious as to what OSTYPE gets set to, as as the code shows, it is not empty.