Author: cazfi
Date: Thu Dec 25 03:59:52 2014
New Revision: 27404

URL: http://svn.gna.org/viewcvs/freeciv?rev=27404&view=rev
Log:
Added win32 post-crash debugger support for ruledit

See patch #5594

Modified:
    trunk/tools/ruledit/ruledit.cpp

Modified: trunk/tools/ruledit/ruledit.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/tools/ruledit/ruledit.cpp?rev=27404&r1=27403&r2=27404&view=diff
==============================================================================
--- trunk/tools/ruledit/ruledit.cpp     (original)
+++ trunk/tools/ruledit/ruledit.cpp     Thu Dec 25 03:59:52 2014
@@ -46,6 +46,17 @@
 {
   enum log_level loglevel = LOG_NORMAL;
   int ui_options;
+
+  /* Load win32 post-crash debugger */
+#ifdef WIN32_NATIVE
+# ifndef NDEBUG
+  if (LoadLibrary("exchndl.dll") == NULL) {
+#  ifdef DEBUG
+    fprintf(stderr, "exchndl.dll could not be loaded, no crash debugger\n");
+#  endif /* DEBUG */
+  }
+# endif /* NDEBUG */
+#endif /* WIN32_NATIVE */
 
   init_nls();
 


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to