[PATCH 2/3] Move includes to the top of header file

Mikhail Gusarov dottedmag at dottedmag.net
Tue May 18 10:41:02 PDT 2010


Signed-off-by: Mikhail Gusarov <dottedmag at dottedmag.net>
---
 include/os.h |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/include/os.h b/include/os.h
index b870135..8585703 100644
--- a/include/os.h
+++ b/include/os.h
@@ -50,6 +50,7 @@ SOFTWARE.
 #define OS_H
 
 #include "misc.h"
+#include <stdio.h>
 #include <stdarg.h>
 
 #define SCREEN_SAVER_ON   0
@@ -126,9 +127,6 @@ void deprecated_Xxalloc(void) _X_DEPRECATED;
 #define xnfrealloc(ptr, size) XNFrealloc((pointer)(ptr), (unsigned long)(size))
 #define xnfstrdup(s) XNFstrdup(s)
 
-#include <stdio.h>
-#include <stdarg.h>
-
 #ifdef DDXBEFORERESET
 extern void ddxBeforeReset (void);
 #endif
-- 
1.7.1



More information about the xorg-devel mailing list