aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorspicyjpeg <88942473+spicyjpeg@users.noreply.github.com>2021-11-18 17:23:25 +0100
committerspicyjpeg <88942473+spicyjpeg@users.noreply.github.com>2021-11-18 17:23:25 +0100
commit619fa016bbc4ddd8d4a670cf3f8aa63617473b2f (patch)
tree3b526a071b715452beadf168e3c6fc898b5fe48c /examples
parent8b6a76055ca426c494e16042e21f5e19b870b2ac (diff)
downloadpsn00bsdk-619fa016bbc4ddd8d4a670cf3f8aa63617473b2f.tar.gz
Deprecated malloc.h, moved int*_t types to stdint.h
Diffstat (limited to 'examples')
-rw-r--r--examples/beginner/cppdemo/main.cpp2
-rw-r--r--examples/cdrom/cdbrowse/main.c1
-rw-r--r--examples/cdrom/cdxa/main.c1
-rw-r--r--examples/demos/n00bdemo/logo.c1
-rw-r--r--examples/demos/n00bdemo/main.c1
-rw-r--r--examples/io/pads/main.c2
-rw-r--r--examples/io/pads/spi.c4
-rw-r--r--examples/io/pads/spi.h1
-rw-r--r--examples/system/dynlink/library/balls.c2
-rw-r--r--examples/system/dynlink/library/cube.c2
-rw-r--r--examples/system/dynlink/library/dll_common.h1
-rw-r--r--examples/system/dynlink/main.c3
12 files changed, 9 insertions, 12 deletions
diff --git a/examples/beginner/cppdemo/main.cpp b/examples/beginner/cppdemo/main.cpp
index 58bfcda..fd2e3a8 100644
--- a/examples/beginner/cppdemo/main.cpp
+++ b/examples/beginner/cppdemo/main.cpp
@@ -13,7 +13,7 @@
#include <sys/types.h>
#include <stdio.h>
-#include <malloc.h>
+#include <stdlib.h>
#include <psxgte.h>
#include <psxgpu.h>
diff --git a/examples/cdrom/cdbrowse/main.c b/examples/cdrom/cdbrowse/main.c
index ead2df0..9a1dbd0 100644
--- a/examples/cdrom/cdbrowse/main.c
+++ b/examples/cdrom/cdbrowse/main.c
@@ -67,7 +67,6 @@
#include <psxspu.h>
#include <psxcd.h>
-#include <malloc.h>
#include "ball16c.h"
diff --git a/examples/cdrom/cdxa/main.c b/examples/cdrom/cdxa/main.c
index 16f1c82..5f11d8d 100644
--- a/examples/cdrom/cdxa/main.c
+++ b/examples/cdrom/cdxa/main.c
@@ -129,7 +129,6 @@
#include <psxspu.h>
#include <psxcd.h>
-#include <malloc.h>
#include "ball16c.h"
diff --git a/examples/demos/n00bdemo/logo.c b/examples/demos/n00bdemo/logo.c
index d10b5b4..40160e7 100644
--- a/examples/demos/n00bdemo/logo.c
+++ b/examples/demos/n00bdemo/logo.c
@@ -5,7 +5,6 @@
#include <psxgte.h>
#include <psxgpu.h>
#include <inline_c.h>
-#include "malloc.h"
#include "smd.h"
#include <lzp/lzp.h>
diff --git a/examples/demos/n00bdemo/main.c b/examples/demos/n00bdemo/main.c
index e9dd336..d2fe317 100644
--- a/examples/demos/n00bdemo/main.c
+++ b/examples/demos/n00bdemo/main.c
@@ -32,7 +32,6 @@
#include <lzp/lzp.h>
#include <lzp/lzqlp.h>
-#include "malloc.h"
#include "smd.h"
#include "data.h"
#include "disp.h"
diff --git a/examples/io/pads/main.c b/examples/io/pads/main.c
index ea7219b..92beb1c 100644
--- a/examples/io/pads/main.c
+++ b/examples/io/pads/main.c
@@ -23,7 +23,7 @@
* zerofilled responses, slow replies) for maximum compatibility.
*/
-#include <sys/types.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/examples/io/pads/spi.c b/examples/io/pads/spi.c
index 5fc2648..e01b3f6 100644
--- a/examples/io/pads/spi.c
+++ b/examples/io/pads/spi.c
@@ -26,9 +26,9 @@
* card APIs) alongside it.
*/
-#include <sys/types.h>
+#include <stdint.h>
#include <string.h>
-#include <malloc.h>
+#include <stdlib.h>
#include <psxetc.h>
#include <psxapi.h>
#include <psxpad.h>
diff --git a/examples/io/pads/spi.h b/examples/io/pads/spi.h
index 09223e2..1c473cd 100644
--- a/examples/io/pads/spi.h
+++ b/examples/io/pads/spi.h
@@ -6,6 +6,7 @@
#ifndef __SPI_H
#define __SPI_H
+#include <stdint.h>
#include <psxpad.h>
//#define SPI_BUFF_LEN 34
diff --git a/examples/system/dynlink/library/balls.c b/examples/system/dynlink/library/balls.c
index 2a4d9f4..ef6993e 100644
--- a/examples/system/dynlink/library/balls.c
+++ b/examples/system/dynlink/library/balls.c
@@ -3,7 +3,7 @@
* (C) 2021 spicyjpeg - MPL licensed
*/
-#include <sys/types.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <psxgpu.h>
diff --git a/examples/system/dynlink/library/cube.c b/examples/system/dynlink/library/cube.c
index 57f3e56..84fe552 100644
--- a/examples/system/dynlink/library/cube.c
+++ b/examples/system/dynlink/library/cube.c
@@ -3,7 +3,7 @@
* (C) 2021 spicyjpeg - MPL licensed
*/
-#include <sys/types.h>
+#include <stdint.h>
#include <stdio.h>
#include <psxgpu.h>
#include <psxgte.h>
diff --git a/examples/system/dynlink/library/dll_common.h b/examples/system/dynlink/library/dll_common.h
index 4f9314b..315a993 100644
--- a/examples/system/dynlink/library/dll_common.h
+++ b/examples/system/dynlink/library/dll_common.h
@@ -6,6 +6,7 @@
#ifndef __DLL_COMMON_H
#define __DLL_COMMON_H
+#include <stdint.h>
#include <psxgpu.h>
/* Common structures shared by the main executable and DLLs */
diff --git a/examples/system/dynlink/main.c b/examples/system/dynlink/main.c
index 33f6f44..6d93e71 100644
--- a/examples/system/dynlink/main.c
+++ b/examples/system/dynlink/main.c
@@ -36,12 +36,11 @@
* as plugins/mods/patches stored on a memory card.
*/
-#include <sys/types.h>
+#include <stdint.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <malloc.h>
#include <dlfcn.h>
#include <psxapi.h>
#include <psxetc.h>