Author Topic: Get operating system?  (Read 2915 times)

Offline roxlu

  • Multiple posting newcomer
  • *
  • Posts: 35
Get operating system?
« on: August 01, 2009, 11:51:05 pm »
hi, how can I get the operating system?

My plugin needs to include other files for win32 then for mac; it would be awesome if there is a way to check which platform/os is used?

roxlu

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7253
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Get operating system?
« Reply #1 on: August 02, 2009, 12:00:11 am »
You can look into src/include/prep.h in the C::B source-tree, how C::B does this.

There are several defines that are set, depending on the platform and compiler(-version).