i965: Move load_interpolated_input/barycentric_* intrinsics to the top.
[mesa.git] / src / mesa / main / extensions.h
index e4671be2cf68822330ac667c5149eecde2484450..43ef6aa645158479fb4020dd1809b3c0ee29cff5 100644 (file)
 
 #include "glheader.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct gl_context;
 struct gl_extensions;
 
@@ -75,7 +79,9 @@ struct mesa_extension {
    /** Year the extension was proposed or approved.  Used to sort the 
     * extension string chronologically. */
    uint16_t year;
-} extern const _mesa_extension_table[];
+};
+
+extern const struct mesa_extension _mesa_extension_table[];
 
 
 /* Generate enums for the functions below */
@@ -86,7 +92,7 @@ enum {
 };
 
 
-/** Checks if the context suports a user-facing extension */
+/** Checks if the context supports a user-facing extension */
 #define EXT(name_str, driver_cap, ...) \
 static inline bool \
 _mesa_has_##name_str(const struct gl_context *ctx) \
@@ -100,4 +106,8 @@ _mesa_has_##name_str(const struct gl_context *ctx) \
 extern struct gl_extensions _mesa_extension_override_enables;
 extern struct gl_extensions _mesa_extension_override_disables;
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif