Skip to content

Commit 9e86fed

Browse files
committed
redo some Linux fixes that got lost in some branch shuffling...
Somewhere along the way we lost fixes for: - using wprintf for a couple console primitives - avoiding a name collision in newer Linux releases SJS-DCO-1.0-Signed-off-by: Colin S. Gordon <[email protected]>
1 parent 4c900fc commit 9e86fed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sjsc/src/main/resources/backend/runtime.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ void printInt(int s) {
5959
*/
6060
void printFloat(double s) {
6161
//printf("%f\n", s);
62-
printf("%.17g\n", s);
62+
wprintf(L"%.17g\n", s);
6363
}
6464
void printFloat10(double s) {
6565
//printf("%f\n", s);
66-
printf("%.10f\n", s);
66+
wprintf(L"%.10f\n", s);
6767
}
6868

6969
// Since we control the runtime, we can ensure all strings are null-terminated...
@@ -103,7 +103,7 @@ void* env_alloc_prim(int count, ...) {
103103
// align to 8 bytes by padding allocation and shifting result
104104
// We need this so closure allocations are 8-byte aligned
105105
void* last_align_basis = NULL;
106-
void* aligned_alloc(size_t n) {
106+
void* sjs_aligned_alloc(size_t n) {
107107
void* m = MEM_ALLOC(n+7);
108108
last_align_basis = m;
109109
assert(m != NULL);

0 commit comments

Comments
 (0)