aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-10-08 09:45:36 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-10-08 09:45:36 -0700
commit816e5c61f4ce9fc9ea85c11708c2e8d57bb6d198 (patch)
tree497b30a695b5aae61770f79b583e8a67d885da67 /src
parentfc95e04e53e84e55abc8fbe05b8f603c6513f89c (diff)
fix newlib stdio init for q1
Diffstat (limited to 'src')
-rw-r--r--src/library.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js
index a8d29ff0..c753422d 100644
--- a/src/library.js
+++ b/src/library.js
@@ -397,7 +397,9 @@ LibraryManager.library = {
FS.streams[_stdin] = FS.streams[1];
FS.streams[_stdout] = FS.streams[2];
FS.streams[_stderr] = FS.streams[3];
- __impure_ptr = allocate([ allocate([0, 0, 0, 0, _stdin, 0, 0, 0, _stdout, 0, 0, 0, _stderr, 0, 0, 0], 'void*', ALLOC_STATIC) ], 'void*', ALLOC_STATIC);
+ __impure_ptr = allocate([ allocate(
+ {{{ QUANTUM_SIZE === 4 ? '[0, 0, 0, 0, _stdin, 0, 0, 0, _stdout, 0, 0, 0, _stderr, 0, 0, 0]' : '[0, _stdin, _stdout, _stderr]' }}},
+ 'void*', ALLOC_STATIC) ], 'void*', ALLOC_STATIC);
// Once initialized, permissions start having effect.
FS.ignorePermissions = false;