]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/urllib.qh
Clean up MENUQC #includes
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / urllib.qh
index 8a871c6b3fdebbfefc9945aca37c2c8dccdd7ab3..8bc9e8333a62399d4c4fffb28b71be4015b497d1 100644 (file)
@@ -1,7 +1,10 @@
-float URL_READY_ERROR    = -1;
-float URL_READY_CLOSED   =  0;
-float URL_READY_CANWRITE =  1;
-float URL_READY_CANREAD  =  2;
+#ifndef URLLIB_H
+#define URLLIB_H
+
+const float URL_READY_ERROR    = -1;
+const float URL_READY_CLOSED   =  0;
+const float URL_READY_CANWRITE =  1;
+const float URL_READY_CANREAD  =  2;
 // errors: -1, or negative HTTP status code
 typedef void(entity handle, entity pass, float status) url_ready_func;
 
@@ -16,3 +19,4 @@ float url_URI_Get_Callback(float id, float status, string data);
 #define NUM_URL_ID (URI_GET_URLLIB_END - URI_GET_URLLIB + 1)
 
 void url_multi_fopen(string url, float mode, url_ready_func rdy, entity pass);
+#endif
\ No newline at end of file