Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 7996795

Browse files
[[ Windows Compile Issue ]] Do not include stdind.h on Windows in external.c
1 parent 337327b commit 7996795

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

libexternal/src/external.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#include <stdlib.h>
22
#include <string.h>
33
#include <stdio.h>
4+
5+
#ifndef _WINDOWS
46
#include <stdint.h>
7+
#endif
58

69
#include <revolution/external.h>
710

@@ -919,7 +922,7 @@ const char *ConvertCStringFromNativeToUTF8(const char *p_native, int *r_success)
919922
if (s_external_interface_version < 4)
920923
{
921924
*r_success = EXTERNAL_FAILURE;
922-
return;
925+
return NULL;
923926
}
924927

925928
t_result = (s_operations[OPERATION_CONVERT_FROM_NATIVE_TO_UTF8])(p_native, NULL, NULL, r_success);
@@ -934,7 +937,7 @@ const char *ConvertCStringToNativeFromUTF8(const char *p_utf8, int *r_success)
934937
if (s_external_interface_version < 4)
935938
{
936939
*r_success = EXTERNAL_FAILURE;
937-
return;
940+
return NULL;
938941
}
939942

940943
t_result = (s_operations[OPERATION_CONVERT_TO_NATIVE_FROM_UTF8])(p_utf8, NULL, NULL, r_success);

0 commit comments

Comments
 (0)