Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: third_party/mesa/include/osmesa.h

Issue 11416265: Linux: include system Mesa headers when using system Mesa. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/mesa/mesa.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/mesa/include/osmesa.h
diff --git a/third_party/mesa/include/osmesa.h b/third_party/mesa/include/osmesa.h
new file mode 100644
index 0000000000000000000000000000000000000000..d727e9045276bc265b0dfd971560789881c03729
--- /dev/null
+++ b/third_party/mesa/include/osmesa.h
@@ -0,0 +1,18 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef THIRD_PARTY_MESA_INCLUDE_OSMESA_H_
+#define THIRD_PARTY_MESA_INCLUDE_OSMESA_H_
+#pragma once
+
+// This is a shim header to include the right mesa header.
+// Use this instead of referencing the mesa header directly.
+
+#if defined(USE_SYSTEM_MESA)
+#include <GL/osmesa.h>
+#else
+#include "third_party/mesa/MesaLib/include/GL/osmesa.h"
+#endif
+
+#endif // THIRD_PARTY_MESA_INCLUDE_OSMESA_H_
« no previous file with comments | « no previous file | third_party/mesa/mesa.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698