diff --git a/source/ftp.c b/source/ftp.c index 4f35c38..497e887 100644 --- a/source/ftp.c +++ b/source/ftp.c @@ -2020,7 +2020,7 @@ ftp_init(void) /* get address to listen on */ serv_addr.sin_family = AF_INET; -#if defined(_3DS) || defined(SWITCH) +#if defined(_3DS) || defined(__SWITCH__) serv_addr.sin_addr.s_addr = gethostid(); serv_addr.sin_port = htons(LISTEN_PORT); #else diff --git a/source/main.c b/source/main.c index cd1421a..3f5217c 100644 --- a/source/main.c +++ b/source/main.c @@ -105,8 +105,8 @@ main(int argc, gfxInitDefault(); gfxSet3D(false); sdmcWriteSafe(false); -#elif defined(SWITCH) /* initialize needed Switch services */ +#elif defined(__SWITCH__) //gfxInitResolution(644, 480); nifmInitialize(); gfxInitDefault();