]> Chaos Git - corbenik/ctrulib.git/commitdiff
fix examples for unpolluted libctru headers
authorDave Murphy <davem@devkitpro.org>
Fri, 28 Nov 2014 21:34:46 +0000 (21:34 +0000)
committerDave Murphy <davem@devkitpro.org>
Fri, 28 Nov 2014 21:34:46 +0000 (21:34 +0000)
examples/gpu/source/main.c
examples/http/source/main.c
examples/mvd/source/main.c
examples/sdmc/source/main.c
template/source/main.c

index 3c177cebe72a8d4df21d99f7e03047b4d840d534..5747637b0c3296ac736793d023747328384b06d9 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #include <math.h>
 #include <3ds.h>
 
index 3d8e16dbebd6d4b9dadb6d3175658a6d978740b1..bb936520c00696be2ab3afe2ad4a122bf8ad75d4 100644 (file)
@@ -1,3 +1,6 @@
+#include <stdlib.h>
+#include <string.h>
+
 #include <3ds.h>
 
 Result http_download(httpcContext *context)//This error handling needs updated with proper text printing once ctrulib itself supports that.
index b573f88cd6ae83003a56c4025a02d8f2c91882ca..3908a1845b87849bfbb28c2f5ae0aaef110330f4 100644 (file)
@@ -1,4 +1,6 @@
 #include <stdio.h>
+#include <string.h>
+
 #include <3ds.h>
 
 #include "costable.h"
index e3c61422f3f2aae245fd4fe59ebb677aa728f186..c65292f37ac626bc023e2c2fdf32e0f8310658f2 100644 (file)
@@ -5,6 +5,7 @@
 //this example shows you how to load a binary image file from the SD card and display it on the lower screen
 //for this to work you should copy test.bin to the root of your SD card
 //this file was generated with GIMP by saving a 240x320 image to raw RGB
+#include <string.h>
 
 #include <3ds.h>
 #include "costable.h"
index c37749325fbae2f0b0d5f06989f87cbd47afe2b0..df717a66d04ed6ccf6d6a09b0f736b5a02347c1f 100644 (file)
@@ -1,3 +1,5 @@
+#include <string.h>
+
 #include <3ds.h>
 
 int main()