Remove a lot of #ifdef's that simply were not needed. For example: Symbian has zip in-built, no need to even compile it let alone use #ifdef's.

This commit is contained in:
Sacha 2014-06-10 23:05:14 +10:00
parent dd03687400
commit f7ffcd4197
6 changed files with 4 additions and 22 deletions

View File

@ -26,9 +26,9 @@ namespace std {
using boost::function;
using boost::shared_ptr;
#else
using tr1::bind;
using tr1::function;
using tr1::shared_ptr;
using tr1::bind;
using tr1::function;
using tr1::shared_ptr;
#endif
template <typename T>

View File

@ -12,9 +12,6 @@
#include <stdlib.h>
#include <string.h>
#if !defined(__SYMBIAN32__) && !defined(__MAC_10_6)
#include <malloc.h>
#endif
// Higher level wrappers/examples (optional).
#include <stdio.h>

View File

@ -59,14 +59,6 @@ extern "C" {
#include <stdio.h>
#include <time.h>
#ifdef __SYMBIAN32__
#define _stat stat
#define _wcsdup wcsdup
#define _wfopen wfopen
#define _wremove wremove
#define _wstat wstat
#endif
/* flags for zip_open */
#define ZIP_CREATE 1

View File

@ -5,10 +5,7 @@
#include <stdio.h>
#ifndef _WIN32
#include <unistd.h>
#include <sys/time.h>
#ifdef __SYMBIAN32__
#include <sys/select.h>
#endif
#else
#include <io.h>
#include <winsock2.h>

View File

@ -23,7 +23,7 @@
#include "file/file_util.h"
#include "util/text/utf8.h"
#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__SYMBIAN32__)
#if defined(__FreeBSD__) || defined(__APPLE__)
#define stat64 stat
#endif

View File

@ -13,11 +13,7 @@
#undef min
#undef max
#else
#if defined(__FreeBSD__) || defined(__SYMBIAN32__)
#include <netinet/in.h>
#else
#include <arpa/inet.h>
#endif
#include <netdb.h>
#include <sys/socket.h>
#include <unistd.h>