Changes to enable compilation on IOS.

parent 8910918e
...@@ -83,7 +83,7 @@ menubutton_t menubutton; ...@@ -83,7 +83,7 @@ menubutton_t menubutton;
std::vector<information> info; std::vector<information> info;
int secret; int secret;
const char * server; char * server;
int port; int port;
bool resetTimestepOnReload; bool resetTimestepOnReload;
......
...@@ -85,7 +85,7 @@ int loadConfigFile(const char * f); ...@@ -85,7 +85,7 @@ int loadConfigFile(const char * f);
//for multiuser //for multiuser
extern int secret; extern int secret;
extern const char * server; extern char * server;
extern int port; extern int port;
extern bool resetTimestepOnReload; extern bool resetTimestepOnReload;
......
...@@ -279,7 +279,7 @@ int readAtomsXYZ(const char *const file, int **numatoms, int *timesteps, float * ...@@ -279,7 +279,7 @@ int readAtomsXYZ(const char *const file, int **numatoms, int *timesteps, float *
{ {
const char *myfile=nullptr; const char *myfile=nullptr;
const char *webdownload="material.xyz"; const char *webdownload="material.xyz";
#if !defined(OCULUSMOBILE) && !defined(__ANDROID__) #if !defined(OCULUSMOBILE) && !defined(__ANDROID__) && !defined(IOS)
//add http support //add http support
if (!strncmp(file, "http:", 5) || !strncmp(file, "https:", 6)) { if (!strncmp(file, "http:", 5) || !strncmp(file, "https:", 6)) {
char cmd[2048]; char cmd[2048];
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
/* Changes: /* Changes:
Rubn Jess Garca Hernndez Rubn Jess Garca Hernndez
Fix missing initialization, lines 379, 482 Fix missing initialization, lines 379, 482
*/
/* /*
# Copyright 2016-2018 Ruben Jesus Garcia Hernandez # Copyright 2016-2018 Ruben Jesus Garcia Hernandez
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment