src/include/common/base/fscapi.h

00001 /*
00002  * Copyright (C) 2003-2007 Funambol, Inc
00003  *
00004  * This program is free software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License version 2 as
00006  * published by the Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY, TITLE, NONINFRINGEMENT or FITNESS FOR A PARTICULAR
00011  * PURPOSE.  See the GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program; if not, write to the Free Software
00015  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00016  * 02111-1307  USA
00017  */
00018 
00027 #ifndef INCL_FSCAPI
00028     #define INCL_FSCAPI
00029 
00031     #ifdef AUTOTOOLS
00032         #include "base/posixadapter.h"
00033     #endif
00034     #ifdef HAVE_STDARG_H
00035         #include <stdarg.h>
00036     #endif
00037 
00038     #include "base/errors.h"
00039 
00040     #if defined(_WIN32_WCE) || defined(WIN32)
00041         // Windows common stuff
00042         #define WIN32_LEAN_AND_MEAN     // Exclude rarely-used stuff from Windows headers
00043 
00044         #include <windows.h>
00045         #include "base/winadapter.h"
00046     #endif
00047 
00048     #if defined(WIN32)
00049         #include "wininet.h"
00050     #endif
00051 
00052     #if defined(WIN32) && !defined(_WIN32_WCE)
00053         #include <wchar.h>
00054         #include <time.h>
00055         #include <stdlib.h>
00056     #endif
00057 
00058     #ifdef _WIN32_WCE
00059         #include "base/time.h"
00060     #endif
00061 
00062     #if defined(__PALMOS__)
00063       #include "base/palmadapter.h"
00064     #endif
00065 
00066     #ifdef MALLOC_DEBUG
00067       #pragma warning(disable:4291)
00068       extern size_t dbgcounter;
00069       void *operator new(size_t s);
00070       void *operator new[](size_t s);
00071       void *operator new(size_t s, char* file, int line);
00072       void *operator new[](size_t s, char* file, int line);
00073       void operator delete(void* p);
00074       void operator delete[] (void* p);
00075 
00076       #define new new(__FILE__, __LINE__)
00077     #endif
00078 
00079     #ifndef SYNC4J_LINEBREAK
00080     // default encoding of line break in native strings,
00081     // may be overridden by adapter header files above
00082     # define SYNC4J_LINEBREAK TEXT("\r\n")
00083     #endif
00084 
00085     #ifndef WCHAR_PRINTF
00086 
00087     # define WCHAR_PRINTF "ls"
00088     #endif
00089 
00106     #include <assert.h>
00107 
00109 #endif
00110 
00111 

Generated on Fri Nov 9 12:21:24 2007 for Funambol Outlook Plug-in Library by  doxygen 1.5.2