Make changes to work with latest libnx

(cherry picked from commit 1bebc6580455b0c60ceb6e5589c5dfbcc59e3a98)
This commit is contained in:
TuxSH 2018-05-04 02:19:18 +02:00 committed by mtheall
parent 2cb78030be
commit 1f78277254
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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();