Commits

Paul O'Neil  committed 4d5fbf9

Use the same fix for dmd_osx as is used for dmd_linux

  • Participants
  • Parent commits b3c6b17

Comments (0)

Files changed (1)

File infrastructure/deimos/python/pyport.d

 }
 
 version(linux) version(DigitalMars) version = dmd_linux;
+version(OSX) version(DigitalMars) version = dmd_osx;
 template PyAPI_DATA(string decl) {
     
     version(dmd_linux) {
             extern 
             __gshared
         } ~ decl ~ ";");
-    }else{
+    } else version(dmd_osx) {
+        enum PyAPI_DATA = (q{
+            extern(C)
+            extern 
+            __gshared
+        } ~ decl ~ ";");
+    } else {
         enum PyAPI_DATA = (q{
             extern(C)
             extern