fix build
[mono.git] / eglib / src / goutput.c
index 346eab0d774cb8969a8e0a8bb7438b33cff50e84..cd2f87f3e513953a62896a0f77c1c8557837caac 100644 (file)
@@ -24,7 +24,6 @@
  * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
-#define _GNU_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
 #include <glib.h>
@@ -74,19 +73,20 @@ g_logv (const gchar *log_domain, GLogLevelFlags log_level, const gchar *format,
                log_domain != NULL ? ": " : "",
                msg);
        free (msg);
-       if (log_level & fatal)
+       if (log_level & fatal){
+               fflush (stdout);
+               fflush (stderr);
                abort ();
+       }
 }
 
 void
 g_log (const gchar *log_domain, GLogLevelFlags log_level, const gchar *format, ...)
 {
-       char *fmt;
        va_list args;
 
        va_start (args, format);
        g_logv (log_domain, log_level, format, args);
-       fmt = g_strdup_printf (format, args);
        va_end (args);
 }