diff --git a/src/ssb.js.c b/src/ssb.js.c index 0a6d7463..df40aa7c 100644 --- a/src/ssb.js.c +++ b/src/ssb.js.c @@ -348,8 +348,7 @@ static JSValue _tf_ssb_set_server_following_me(JSContext* context, JSValueConst if (ssb) { set_server_following_me_t* work = tf_malloc(sizeof(set_server_following_me_t)); - *work = (set_server_following_me_t) - { + *work = (set_server_following_me_t) { .user = JS_ToCString(context, argv[0]), .key = JS_ToCString(context, argv[1]), .follow = JS_ToBool(context, argv[2]), diff --git a/src/ssb.tests.c b/src/ssb.tests.c index b4ed3311..ad620d27 100644 --- a/src/ssb.tests.c +++ b/src/ssb.tests.c @@ -16,6 +16,11 @@ #include #include +#if defined(_WIN32) +#define WIFEXITED(x) 1 +#define WEXITSTATUS(x) (x) +#endif + void tf_ssb_test_id_conversion(const tf_test_options_t* options) { tf_printf("Testing id conversion.\n"); @@ -820,6 +825,7 @@ void tf_ssb_test_go_ssb_room(const tf_test_options_t* options) uv_loop_close(&loop); } +#if !TARGET_OS_IPHONE static void _write_file(const char* path, const char* contents) { FILE* file = fopen(path, "w"); @@ -858,3 +864,4 @@ void tf_ssb_test_encrypt(const tf_test_options_t* options) printf("returned %d\n", WEXITSTATUS(result)); assert(WEXITSTATUS(result) == 0); } +#endif