compiler/bootstrap: Fixes for compiling the bootstrap config from the projects
authorJerome St-Louis <jerome@ecere.com>
Sat, 2 Feb 2013 01:53:30 +0000 (20:53 -0500)
committerJerome St-Louis <jerome@ecere.com>
Sat, 2 Feb 2013 01:53:30 +0000 (20:53 -0500)
ecere/src/com/instance.c
ecere/src/sys/File.c

index cd935a0..c8b106a 100644 (file)
@@ -240,7 +240,7 @@ bool Instance_LocateModule(char * name, char * fileName)
 
 void Instance_COM_Initialize(int argc, char ** argv, char ** parsedCommand, int * argcPtr, char *** argvPtr)
 {
-#if !defined(__WIN32__)
+#if !defined(__WIN32__) && !defined(ECERE_BOOTSTRAP)
    // Disable stdout buffering on Unix
    setvbuf(stdout, null, _IONBF, 0);
 #endif
index f7eb7c0..06339c9 100644 (file)
@@ -210,7 +210,7 @@ bool FILE_Lock(FILE * input, FILE * output, FileLock type, uint64 start, uint64
 
 void FILE_set_buffered(FILE * input, FILE * output, bool value)
 {
-#if !defined(__WIN32__)
+#if !defined(__WIN32__) && !defined(ECERE_BOOTSTRAP)
    if(input)
       setvbuf(input, null, value ? _IOFBF : _IONBF, 0);
    if(output && output != input)