mkxp-z/subprojects/packagefiles/libsndfile-ssize.patch

17 lines
411 B
Diff

# Stops libsndfile from manually defining `ssize_t` because it breaks builds for PlayStation 3.
--- a/src/config.h.cmake
+++ b/src/config.h.cmake
@@ -148,9 +148,9 @@
/* Define to 1 if the system has the type `ssize_t'. */
#cmakedefine01 HAVE_SSIZE_T
-#if (HAVE_SSIZE_T == 0)
-#define ssize_t intptr_t
-#endif
+
+
+
/* Define to 1 if you have the <stdint.h> header file. */
#cmakedefine01 HAVE_STDINT_H