Minor future-proofing

This commit is contained in:
Michael Theall 2020-05-07 23:30:23 -05:00
parent 900df7882d
commit 75d507425a
8 changed files with 9 additions and 4 deletions

View File

@ -28,6 +28,7 @@
#include "imgui.h" #include "imgui.h"
#include <algorithm> #include <algorithm>
#include <cstdint>
#include <cstdlib> #include <cstdlib>
#include <cstring> #include <cstring>
#include <vector> #include <vector>

View File

@ -77,6 +77,7 @@ bool s_backlight = true;
aptHookCookie s_aptHookCookie; aptHookCookie s_aptHookCookie;
#ifdef CLASSIC #ifdef CLASSIC
/// \brief Host address
in_addr_t s_addr = 0; in_addr_t s_addr = 0;
#else #else
/// \brief Clear color /// \brief Clear color

View File

@ -22,6 +22,7 @@
#include <cinttypes> #include <cinttypes>
#include <cstdio> #include <cstdio>
#include <string>
#if defined(NDS) || defined(_3DS) || defined(__SWITCH__) #if defined(NDS) || defined(_3DS) || defined(__SWITCH__)
#define getline __getline #define getline __getline

View File

@ -25,7 +25,7 @@
#include <sys/stat.h> #include <sys/stat.h>
//#include <algorithm> #include <limits>
namespace namespace
{ {

View File

@ -39,6 +39,7 @@ PrintConsole g_sessionConsole;
namespace namespace
{ {
/// \brief Host address
struct in_addr s_addr = {0}; struct in_addr s_addr = {0};
/// \brief Whether to power backlight /// \brief Whether to power backlight
bool s_backlight = true; bool s_backlight = true;

View File

@ -23,6 +23,8 @@
#ifndef CLASSIC #ifndef CLASSIC
#include <deko3d.hpp> #include <deko3d.hpp>
#include <cstdint>
namespace imgui namespace imgui
{ {
namespace deko3d namespace deko3d

View File

@ -55,7 +55,7 @@ void userAppInit ()
appletLockExit (); appletLockExit ();
romfsInit (); romfsInit ();
plInitialize (); plInitialize (PlServiceType_User);
psmInitialize (); psmInitialize ();
nifmInitialize (NifmServiceType_User); nifmInitialize (NifmServiceType_User);
socketInitialize (&s_socketInitConfig); socketInitialize (&s_socketInitConfig);

View File

@ -57,6 +57,7 @@ bool s_backlight = true;
AppletHookCookie s_appletHookCookie; AppletHookCookie s_appletHookCookie;
#ifdef CLASSIC #ifdef CLASSIC
/// \brief Host address
in_addr_t s_addr = 0; in_addr_t s_addr = 0;
#else #else
/// \brief Texture index /// \brief Texture index
@ -527,8 +528,6 @@ void drawStatus ()
} }
} }
bool platform::init () bool platform::init ()
{ {
#ifdef CLASSIC #ifdef CLASSIC