]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/url.cpp
Partial OSX support
[xonotic/netradiant.git] / radiant / url.cpp
index e5abc077f5b9424e2ddbb9afb66a368d410993b8..e5ed0bc57f0b73c18afa956ea3982981e095a031 100644 (file)
@@ -33,7 +33,7 @@ bool open_url( const char* url ){
 #endif
 
 #if defined( __linux__ ) || defined( __FreeBSD__ )
-#include <stdlib.h>
+#include <cstdlib>
 bool open_url( const char* url ){
        // \todo FIXME: the way we open URLs on *nix should be improved. A script is good (see how I do on RTCW)
        char command[2 * PATH_MAX];
@@ -44,7 +44,7 @@ bool open_url( const char* url ){
 #endif
 
 #ifdef __APPLE__
-#include <stdlib.h>
+#include <cstdlib>
 bool open_url( const char* url ){
        char command[2 * PATH_MAX];
        snprintf( command, sizeof( command ), "open \"%s\" &", url );