[Gdi32]
[reactos.git] / reactos / win32ss / win32kp.h
index 3748da4..386db09 100644 (file)
 
 #pragma once
 
-#if 0
-#ifndef _MSC_VER
-#define PLACE_IN_SECTION(s) __attribute__((section(s)))
-#define INIT_FUNCTION PLACE_IN_SECTION("INIT")
+#ifdef __GNUC__
+#define INIT_SECTION __attribute__((section ("INIT")))
+#define INIT_FUNCTION INIT_SECTION
 #else
-#define INIT_FUNCTION
-#endif
-#else
-#define INIT_FUNCTION
+#define INIT_SECTION  /* Done via alloc_text for MSC */
+#define INIT_FUNCTION INIT_SECTION
 #endif
 
 /* Enable debugging features */