]> git.lizzy.rs Git - minetest.git/blobdiff - src/porting.h
Settings: Remove unused functions
[minetest.git] / src / porting.h
index 304e4aff0d0c86303b3a7563d3b41959007ee3fb..c7adf12a223e5af9cd26fd8a05f3dbd5a14f39a6 100644 (file)
@@ -127,10 +127,10 @@ namespace porting
        Signal handler (grabs Ctrl-C on POSIX systems)
 */
 
-void signal_handler_init(void);
+void signal_handler_init();
 // Returns a pointer to a bool.
 // When the bool is true, program should quit.
-bool * signal_handler_killstatus(void);
+bool * signal_handler_killstatus();
 
 /*
        Path of static data directory.
@@ -309,6 +309,8 @@ inline const char *getPlatformName()
        #else
                "SunOS"
        #endif
+#elif defined(__HAIKU__)
+       "Haiku"
 #elif defined(__CYGWIN__)
        "Cygwin"
 #elif defined(__unix__) || defined(__unix)
@@ -326,7 +328,12 @@ inline const char *getPlatformName()
 bool secure_rand_fill_buf(void *buf, size_t len);
 
 // This attaches to the parents process console, or creates a new one if it doesnt exist.
-void attachOrCreateConsole(void);
+void attachOrCreateConsole();
+
+int mt_snprintf(char *buf, const size_t buf_size, const char *fmt, ...);
+
+bool openURL(const std::string &url);
+
 } // namespace porting
 
 #ifdef __ANDROID__