瀏覽代碼

express: Fix vestigial reference to WIN32_VC macro

rdb 3 年之前
父節點
當前提交
671b16eb41
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      panda/src/express/zipArchive.cxx

+ 1 - 1
panda/src/express/zipArchive.cxx

@@ -1060,7 +1060,7 @@ close_read_subfile(std::istream *stream) {
     // stream pointer does not call the appropriate global delete function;
     // instead apparently calling the system delete function.  So we call the
     // delete function by hand instead.
-#if !defined(WIN32_VC) && !defined(USE_MEMORY_NOWRAPPERS) && defined(REDEFINE_GLOBAL_OPERATOR_NEW)
+#if defined(__GNUC__) && !defined(USE_MEMORY_NOWRAPPERS) && defined(REDEFINE_GLOBAL_OPERATOR_NEW)
     stream->~istream();
     (*global_operator_delete)(stream);
 #else