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

Unified Diff: libraries/nacl-mounts/util/ppapi_version.h

Issue 9271014: Another ugly hack to work around ppapi header changes. (Closed) Base URL: http://naclports.googlecode.com/svn/trunk/src/
Patch Set: '' Created 8 years, 11 months 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 | « libraries/nacl-mounts/pepper/PepperFileIOJob.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libraries/nacl-mounts/util/ppapi_version.h
===================================================================
--- libraries/nacl-mounts/util/ppapi_version.h (revision 0)
+++ libraries/nacl-mounts/util/ppapi_version.h (revision 0)
@@ -0,0 +1,19 @@
+/*
+ * Copyright (c) 2012 The Native Client 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 PACKAGES_LIBRARIES_NACL_MOUNTS_UTIL_PPAPI_VERSION_H_
+#define PACKAGES_LIBRARIES_NACL_MOUNTS_UTIL_PPAPI_VERSION_H_
+
+// Horrible hack to determine ppapi version
+// TODO: figure something out for 17
+#include <ppapi/c/ppb_var.h>
+
+#ifdef PPB_VAR_INTERFACE_1_1
+#define ADHOC_PPAPI_VERSION 18
+#else
+#define ADHOC_PPAPI_VERSION 16
+#endif
+
+#endif // PACKAGES_LIBRARIES_NACL_MOUNTS_UTIL_VERSION_H_
Property changes on: libraries/nacl-mounts/util/ppapi_version.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « libraries/nacl-mounts/pepper/PepperFileIOJob.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698