fix USERMODE=0 compilation
[reactos.git] / reactos / lib / 3rdparty / mingw / mingw.rbuild
index 1b544f5..b37c281 100644 (file)
@@ -5,7 +5,9 @@
        <define name="_CRTBLD" />
        <importlibrary definition="moldname-msvcrt.def" dllname="msvcrt.dll" />
        <include base="ReactOS">include/reactos/mingw-w64</include>
-       <library>kernel32</library>
+       <if property="USERMODE" value="1">
+               <library>kernel32</library>
+       </if>
        <file>_newmode.c</file>
        <file>atonexit.c</file>
        <file>binmode.c</file>