st/mesa: move extern C wrappers where applicable
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 16 Feb 2017 15:16:36 +0000 (15:16 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 21 Feb 2017 18:29:07 +0000 (18:29 +0000)
Namely, after the include directives. The headers are properly annotated
so keeping things as-is is only asking for trouble.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_atifs_to_tgsi.h
src/mesa/state_tracker/st_mesa_to_tgsi.h

index c1b6758ba024a24319daa488e0042629779f2245..14227023ba0a70e4a8b8678bc1bf9332c0f0f52b 100644 (file)
 #ifndef ST_ATIFS_TO_TGSI_H
 #define ST_ATIFS_TO_TGSI_H
 
+#include "main/glheader.h"
+#include "pipe/p_defines.h"
+
 #if defined __cplusplus
 extern "C" {
 #endif
 
-#include "main/glheader.h"
-#include "pipe/p_defines.h"
-
 struct gl_context;
 struct gl_program;
 struct ureg_program;
index ed7a3adfe1adfcc83e50e35d2ce4e62918e583c3..3df54ce5b87b2158238d053dacd5cd0308a1a2ed 100644 (file)
 #ifndef ST_MESA_TO_TGSI_H
 #define ST_MESA_TO_TGSI_H
 
-#if defined __cplusplus
-extern "C" {
-#endif
-
 #include "main/glheader.h"
 
 #include "pipe/p_compiler.h"
 #include "pipe/p_defines.h"
 
+#if defined __cplusplus
+extern "C" {
+#endif
+
 struct gl_context;
 struct gl_program;
 struct tgsi_token;