vcpkg/ports/libpng-apng/use-abort-on-all-platforms.patch
Albert Huang d60b48c32e Add libpng-apng as a new port (#2578)
* Add libpng-apng as a new ports definition

* Update portfile to use 7Z to extract patch + fix others
2018-02-17 04:31:26 -08:00

18 lines
396 B
Diff

diff --git a/pngpriv.h b/pngpriv.h
index fe3355d..5a049b5 100644
--- a/pngpriv.h
+++ b/pngpriv.h
@@ -457,11 +457,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. */