Skip to content

Instantly share code, notes, and snippets.

@pravic
Created May 11, 2017 18:19
Show Gist options
  • Save pravic/5199ed76439006f4002d3cd74fc74e26 to your computer and use it in GitHub Desktop.
Save pravic/5199ed76439006f4002d3cd74fc74e26 to your computer and use it in GitHub Desktop.
Disable stdafx.h in Sciter
diff --git a/include/sciter-win-main.cpp b/include/sciter-win-main.cpp
index 9f2699e..104b70a 100644
--- a/include/sciter-win-main.cpp
+++ b/include/sciter-win-main.cpp
@@ -1,4 +1,6 @@
-#include "stdafx.h"
+// It is better to disable stdafx.h by default.
+// And enable it explicitly via /Fstdafx.h compiler option (C/C++ - Advanced - Force Include File).
+// #include "stdafx.h"
#include <vector>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment