vcpkg/ports/libpng/use_abort.patch
Stefano Sinigardi a5590520f0 [libpng] Strong cleanup of the port (#9198)
* [libpng] strong cleanup of the port

* [libpng] do not install unhandled tools

* [libpng] restore library proper name on windows-static triplets
2019-12-23 15:26:04 -08:00

18 lines
396 B
Diff

diff --git a/pngpriv.h b/pngpriv.h
index 583c26f..135651c 100644
--- a/pngpriv.h
+++ b/pngpriv.h
@@ -556,11 +556,7 @@
/* Memory model/platform independent fns */
#ifndef PNG_ABORT
-# ifdef _WINDOWS_
-# define PNG_ABORT() ExitProcess(0)
-# else
-# define PNG_ABORT() abort()
-# endif
+# define PNG_ABORT() abort()
#endif
/* These macros may need to be architecture dependent. */