summaryrefslogtreecommitdiff
path: root/testing/misc_tools.c
diff options
context:
space:
mode:
Diffstat (limited to 'testing/misc_tools.c')
-rw-r--r--testing/misc_tools.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/testing/misc_tools.c b/testing/misc_tools.c
index a3a89c2f..14e0ba7e 100644
--- a/testing/misc_tools.c
+++ b/testing/misc_tools.c
@@ -21,6 +21,9 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef MISC_TOOLS_C
25#define MISC_TOOLS_C
26
24#ifdef HAVE_CONFIG_H 27#ifdef HAVE_CONFIG_H
25#include "config.h" 28#include "config.h"
26#endif 29#endif
@@ -42,6 +45,8 @@
42#endif 45#endif
43#endif 46#endif
44 47
48#include "../toxcore/ccompat.h"
49
45// You are responsible for freeing the return value! 50// You are responsible for freeing the return value!
46uint8_t *hex_string_to_bin(const char *hex_string) 51uint8_t *hex_string_to_bin(const char *hex_string)
47{ 52{
@@ -111,3 +116,5 @@ int cmdline_parsefor_ipv46(int argc, char **argv, uint8_t *ipv6enabled)
111 116
112 return argvoffset; 117 return argvoffset;
113} 118}
119
120#endif // MISC_TOOLS_C