/[pcsx2_0.9.7]/trunk/common/include/PS2Eext.h
ViewVC logotype

Diff of /trunk/common/include/PS2Eext.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/common/include/PS2Eext.h	2010/09/07 06:28:05	61
+++ trunk/common/include/PS2Eext.h	2010/09/07 11:08:22	62
@@ -30,7 +30,7 @@
 #include <gtk/gtk.h>
 #include <cstring>
 
-#define EXPORT_C_(type) extern "C" type
+#define EXPORT_C_(type) extern "C" __attribute__((externally_visible,visibility("default"))) type
 #endif
 
 //#include "PS2Edefs.h"
@@ -64,7 +64,10 @@
 
     void Close()
     {
-        if (LogFile) fclose(LogFile);
+        if (LogFile) {
+            fclose(LogFile);
+            LogFile = NULL;
+        }
     }
 
     void Write(const char *fmt, ...)
@@ -132,7 +135,10 @@
 
     void Close()
     {
-        fclose(ConfFile);
+        if (ConfFile) {
+            fclose(ConfFile);
+            ConfFile = NULL;
+        }
     }
 
     int ReadInt(const std::string& item, int defval)

 

  ViewVC Help
Powered by ViewVC 1.1.22