summaryrefslogtreecommitdiff
path: root/src/net/download.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2011-06-03 11:19:20 -0600
committerJared Adams <jaxad0127@gmail.com>2011-06-03 12:08:26 -0600
commit3c0cb0e058324ee1d3116017f14387e9a6004442 (patch)
treeb9c00c3fdf1dff7e4c07bf4f8c83c2e7bc03c0f7 /src/net/download.h
parent894038adf52a3e2b42542239a147d6c1cc1ad204 (diff)
downloadmana-client-3c0cb0e058324ee1d3116017f14387e9a6004442.tar.gz
mana-client-3c0cb0e058324ee1d3116017f14387e9a6004442.tar.bz2
mana-client-3c0cb0e058324ee1d3116017f14387e9a6004442.tar.xz
mana-client-3c0cb0e058324ee1d3116017f14387e9a6004442.zip
Replace SDL_types.h with cstdint
This required moving to C++0x, so it does that too, and fixes a few errors with that. Reviewed-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
Diffstat (limited to 'src/net/download.h')
-rw-r--r--src/net/download.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/net/download.h b/src/net/download.h
index 216f6ff2..cf7335d4 100644
--- a/src/net/download.h
+++ b/src/net/download.h
@@ -18,9 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <SDL_types.h>
-
-#include <stdio.h>
+#include <cstdio>
#include <string>
#ifndef NET_DOWNLOAD_H
@@ -62,7 +60,7 @@ class Download
*/
void noCache();
- void setFile(const std::string &filename, Sint64 adler32 = -1);
+ void setFile(const std::string &filename, int64_t adler32 = -1);
void setWriteFunction(WriteFunction write);
@@ -95,7 +93,7 @@ class Download
} mOptions;
std::string mFileName;
WriteFunction mWriteFunction;
- unsigned long mAdler;
+ int64_t mAdler;
DownloadUpdate mUpdateFunction;
SDL_Thread *mThread;
CURL *mCurl;