forked from irungentoo/toxcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathincludes.patch
88 lines (75 loc) · 2.02 KB
/
includes.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
diff --git a/README.md b/README.md
index 4d08dcd..c060f96 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,5 @@
+The purpose of this clone is to make Xcode happy by providing .m files instead of .c and change some includes.
+
![Project Tox](https://raw.github.com/irungentoo/toxcore/master/other/tox.png "Project Tox")
***
diff --git a/other/fun/sign.c b/other/fun/sign.c
index 56a9d1e..1eab693 100644
--- a/other/fun/sign.c
+++ b/other/fun/sign.c
@@ -15,7 +15,7 @@
*
* NOTE: The signature is appended to the end of the file.
*/
-#include <sodium.h>
+#include "sodium.h"
#include <string.h>
#include "../../testing/misc_tools.c" // hex_string_to_bin
diff --git a/other/fun/strkey.c b/other/fun/strkey.c
index 7e5a1e1..cfc218f 100644
--- a/other/fun/strkey.c
+++ b/other/fun/strkey.c
@@ -39,7 +39,7 @@
#include <stdio.h>
#include <string.h>
-#include <sodium.h>
+#include "sodium.h"
#define PRINT_TRIES_COUNT
diff --git a/toxav/audio.h b/toxav/audio.h
index b1db744..7b2af93 100644
--- a/toxav/audio.h
+++ b/toxav/audio.h
@@ -22,7 +22,7 @@
#ifndef AUDIO_H
#define AUDIO_H
-#include <opus.h>
+#include "opus.h"
#include <pthread.h>
#include "toxav.h"
diff --git a/toxav/group.h b/toxav/group.h
index 3355a44..ea18a15 100644
--- a/toxav/group.h
+++ b/toxav/group.h
@@ -19,7 +19,7 @@
*/
/* Audio encoding/decoding */
-#include <opus.h>
+#include "opus.h"
#include "../toxcore/group.h"
diff --git a/toxcore/crypto_core.h b/toxcore/crypto_core.h
index eefb1d9..9147d00 100644
--- a/toxcore/crypto_core.h
+++ b/toxcore/crypto_core.h
@@ -27,7 +27,7 @@
#ifndef VANILLA_NACL
/* We use libsodium by default. */
-#include <sodium.h>
+#include "sodium.h"
#else
#include <crypto_box.h>
#include <randombytes.h>
diff --git a/toxcore/network.m b/toxcore/network.m
index 22ee420..d0d8c6e 100644
--- a/toxcore/network.m
+++ b/toxcore/network.m
@@ -437,7 +437,7 @@ void networking_poll(Networking_Core *net)
#ifndef VANILLA_NACL
/* Used for sodium_init() */
-#include <sodium.h>
+#include "sodium.h"
#endif
uint8_t at_startup_ran = 0;