Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
Developer forums (C::B DEVELOPMENT STRICTLY!)
»
Plugins development
»
Get operating system?
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Get operating system? (Read 4838 times)
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
Logged
Jenna
Administrator
Lives here!
Posts: 7255
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).
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
Developer forums (C::B DEVELOPMENT STRICTLY!)
»
Plugins development
»
Get operating system?