Forráskód Böngészése

Updating code to PuTTY 0112936e

Source commit: 5bf0f49c56fceccbf82d0b6683a381863de1c63b
Martin Prikryl 6 éve
szülő
commit
20757df7e1
1 módosított fájl, 6 hozzáadás és 1 törlés
  1. 6 1
      source/putty/misc.h

+ 6 - 1
source/putty/misc.h

@@ -199,7 +199,12 @@ char *buildinfo(const char *newline);
  * function labelled NORETURN just in case some unusual kind of system
  * header wasn't foresighted enough to label abort() itself that way.
  */
-static inline NORETURN void unreachable_internal(void) { abort(); }
+static inline NORETURN void unreachable_internal(void) { 
+  #ifndef WINSCP_VS
+  // Not to try to link to VS abort
+  abort();
+  #endif
+}
 #define unreachable(msg) (assert(false && msg), unreachable_internal())
 
 /*