aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2012-01-28 14:27:17 -0500
committerEhsan Akhgari <ehsan.akhgari@gmail.com>2012-01-28 14:27:17 -0500
commit1bbe851768ded820f7538fee5a8454a77c725517 (patch)
tree20c7b27542a72df0e91d9efab4e84a738f2f4c43
parent60f50b53e7b27c79bfd0888b44db2a78fa6344ba (diff)
Only define TypedArray_copy when typed arrays are enabled
-rw-r--r--src/preamble.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/preamble.js b/src/preamble.js
index 5470ff39..9370fa54 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -692,6 +692,7 @@ function Array_copy(ptr, num) {
}
Module['Array_copy'] = Array_copy;
+#if USE_TYPED_ARRAYS
// Copies a list of num items on the HEAP into a
// JavaScript typed array.
function TypedArray_copy(ptr, num) {
@@ -703,6 +704,7 @@ function TypedArray_copy(ptr, num) {
return arr.buffer;
}
Module['TypedArray_copy'] = TypedArray_copy;
+#endif
function String_len(ptr) {
var i = 0;