Skip to content

Commit

Permalink
fix ANGLE build on Android (don't bother with OS detection with NSPR)…
Browse files Browse the repository at this point in the history
…; bustage fix; a=b
  • Loading branch information
vvuk committed Dec 27, 2010
1 parent 4b40a2a commit f39c6ca
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 2 additions & 0 deletions gfx/angle/README.mozilla
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Local patches:

angle-fixes.patch - fix angle issues 51 & 52

angle-nspr-misc.patch - don't bother with ANGLE_OS detection with NSPR

== Visual Studio Solution Files ==

The VS solution/project files that are used to build ANGLE are built
Expand Down
17 changes: 17 additions & 0 deletions gfx/angle/angle-nspr-misc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# HG changeset patch
# Parent f0e6e4c311dd940147f1589d72cc87f8ce755697
diff --git a/gfx/angle/src/compiler/osinclude.h b/gfx/angle/src/compiler/osinclude.h
--- a/gfx/angle/src/compiler/osinclude.h
+++ b/gfx/angle/src/compiler/osinclude.h
@@ -12,8 +12,10 @@
// declares any os-specific functions.
//

-#if defined(_WIN32) || defined(_WIN64)
+#if defined(ANGLE_USE_NSPR)
+/* no need to define anything when using NSPR */
+#elif defined(_WIN32) || defined(_WIN64)
#define ANGLE_OS_WIN
#elif defined(__APPLE__) || defined(__linux__) || \
defined(__FreeBSD__) || defined(__OpenBSD__) || \
defined(__sun)
4 changes: 3 additions & 1 deletion gfx/angle/src/compiler/osinclude.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
// declares any os-specific functions.
//

#if defined(_WIN32) || defined(_WIN64)
#if defined(ANGLE_USE_NSPR)
/* no need to define anything when using NSPR */
#elif defined(_WIN32) || defined(_WIN64)
#define ANGLE_OS_WIN
#elif defined(__APPLE__) || defined(__linux__) || \
defined(__FreeBSD__) || defined(__OpenBSD__) || \
Expand Down

0 comments on commit f39c6ca

Please sign in to comment.