From 3bbb58145069f7de0814ff283ed32ba1905a3b24 Mon Sep 17 00:00:00 2001 From: Lucas GAUTHERON Date: Sun, 23 Jun 2013 17:45:09 +0000 Subject: [PATCH] don't require libcurl headers in STANDALONE git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7498 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/entity.h | 2 ++ source/src/platform.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/source/src/entity.h b/source/src/entity.h index 3a4af00b..e118d16d 100644 --- a/source/src/entity.h +++ b/source/src/entity.h @@ -650,6 +650,7 @@ inline const char *killmessage(int gun, bool gib = false) return killmessages[gib?1:0][gun]; } +#ifndef STANDALONE struct pckserver { char *addr; @@ -671,3 +672,4 @@ struct package package() : name(NULL), type(-1), number(0), pending(false), source(NULL), curl(NULL) {} }; +#endif \ No newline at end of file diff --git a/source/src/platform.h b/source/src/platform.h index 89f5e09c..aece7e24 100644 --- a/source/src/platform.h +++ b/source/src/platform.h @@ -75,4 +75,6 @@ #ifndef CURL_STATICLIB #define CURL_STATICLIB #endif +#ifndef STANDALONE #include "curl/curl.h" +#endif