Parcourir la source

Update main.cpp

blueloveTH il y a 1 an
Parent
commit
6863f63a8f
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  1. 6 1
      src2/main.cpp

+ 6 - 1
src2/main.cpp

@@ -3,7 +3,12 @@
 #include <iostream>
 #include <sstream>
 
-#include "pocketpy_c.h"
+#if __has_include("pocketpy_c.h")
+    #include "pocketpy_c.h"
+#else
+    // for amalgamated build
+    #include "pocketpy.h"
+#endif
 
 #ifdef _WIN32