how enable condition ifndef __REACTOS__
Moderator: Moderator Team
how enable condition ifndef __REACTOS__
Hello i have question, when i run exe in reactos how enable condition ifndef __REACTOS__ ?
-
- Developer
- Posts: 246
- Joined: Fri Dec 19, 2014 10:00 pm
Re: how enable condition ifndef __REACTOS__
This is a compile time condition, that is added globally when building reactos:
https://git.reactos.org/?p=reactos.git; ... 4a1ba2#l59
https://git.reactos.org/?p=reactos.git; ... 4a1ba2#l59
Re: how enable condition ifndef __REACTOS__
Do we need to activate it in ninja?
for example ninja -D __REACTOS__ bootcd
or i must edit file ?
for example ninja -D __REACTOS__ bootcd
or i must edit file ?
Re: how enable condition ifndef __REACTOS__
__REACTOS__ is already defined for anything built through our build system due to the line pointed out by learn_more
"ifndef" means "if not defined", so in order to trigger that code path you would need to remove the define, i.e. remove or uncomment that line in CMakeLists.txt. There is no way to do this through the ninja command line.
That said, ROS won't build with this define removed, and the parts that do compile successfully will have known bugs. This is the whole point of the __REACTOS__ define -- to allow us to make ROS-specific changes either to fix compilation or known issues in 3rd party code. You can try to build without it and hack around the problems in other manners, but this is not a supported scenario.
Perhaps if you told us why you think you need to remove it, we could point out a better solution.
"ifndef" means "if not defined", so in order to trigger that code path you would need to remove the define, i.e. remove or uncomment that line in CMakeLists.txt. There is no way to do this through the ninja command line.
That said, ROS won't build with this define removed, and the parts that do compile successfully will have known bugs. This is the whole point of the __REACTOS__ define -- to allow us to make ROS-specific changes either to fix compilation or known issues in 3rd party code. You can try to build without it and hack around the problems in other manners, but this is not a supported scenario.
Perhaps if you told us why you think you need to remove it, we could point out a better solution.
-
- Posts: 441
- Joined: Sat Nov 15, 2008 4:13 pm
Re: how enable condition ifndef __REACTOS__
Also, please read at least the first paragraph of this Wikipedia article.
I reserve the right to ignore any portion of any post if I deem it not constructive or likely to cause the discussion to degenerate.
Re: how enable condition ifndef __REACTOS__
I want to compile reactos by putting nt6 functions in the kernel32
i want to integrate kernel32vista to kernel32
https://github.com/reactos/reactos/blob ... vista.spec
like function SleepConditionVariableSRW, WakeAllConditionVariable...etc.
i want to integrate kernel32vista to kernel32
https://github.com/reactos/reactos/blob ... vista.spec
like function SleepConditionVariableSRW, WakeAllConditionVariable...etc.
Re: how enable condition ifndef __REACTOS__
Why do your post looks like almost verbatim copy-paste of viewtopic.php?f=9&t=17678 ?rolo wrote: ↑Fri Sep 28, 2018 8:58 pm I want to compile reactos by putting nt6 functions in the kernel32
i want to integrate kernel32vista to kernel32
https://github.com/reactos/reactos/blob ... vista.spec
like function SleepConditionVariableSRW, WakeAllConditionVariable...etc.
Who is online
Users browsing this forum: No registered users and 12 guests