src/include/common/base/fscapi.h

00001 /*
00002  * Funambol is a mobile platform developed by Funambol, Inc. 
00003  * Copyright (C) 2003 - 2007 Funambol, Inc.
00004  * 
00005  * This program is free software; you can redistribute it and/or modify it under
00006  * the terms of the GNU Affero General Public License version 3 as published by
00007  * the Free Software Foundation with the addition of the following permission 
00008  * added to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED
00009  * WORK IN WHICH THE COPYRIGHT IS OWNED BY FUNAMBOL, FUNAMBOL DISCLAIMS THE 
00010  * WARRANTY OF NON INFRINGEMENT  OF THIRD PARTY RIGHTS.
00011  * 
00012  * This program is distributed in the hope that it will be useful, but WITHOUT
00013  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00014  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
00015  * details.
00016  * 
00017  * You should have received a copy of the GNU Affero General Public License 
00018  * along with this program; if not, see http://www.gnu.org/licenses or write to
00019  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
00020  * MA 02110-1301 USA.
00021  * 
00022  * You can contact Funambol, Inc. headquarters at 643 Bair Island Road, Suite 
00023  * 305, Redwood City, CA 94063, USA, or at email address info@funambol.com.
00024  * 
00025  * The interactive user interfaces in modified source and object code versions
00026  * of this program must display Appropriate Legal Notices, as required under
00027  * Section 5 of the GNU Affero General Public License version 3.
00028  * 
00029  * In accordance with Section 7(b) of the GNU Affero General Public License
00030  * version 3, these Appropriate Legal Notices must retain the display of the
00031  * "Powered by Funambol" logo. If the display of the logo is not reasonably 
00032  * feasible for technical reasons, the Appropriate Legal Notices must display
00033  * the words "Powered by Funambol".
00034  */
00035 
00044 #ifndef INCL_FSCAPI
00045     #define INCL_FSCAPI
00046 
00048     #ifdef AUTOTOOLS
00049         #include "base/posixadapter.h"
00050     #endif
00051     #ifdef HAVE_STDARG_H
00052         #include <stdarg.h>
00053     #endif
00054 
00055     #include "base/errors.h"
00056 
00057     #if defined(_WIN32_WCE) || defined(WIN32)
00058         // Windows common stuff
00059         #define WIN32_LEAN_AND_MEAN     // Exclude rarely-used stuff from Windows headers
00060 
00061         #include <windows.h>
00062         #include "base/winadapter.h"
00063     #endif
00064 
00065     #if defined(WIN32)
00066         #include "wininet.h"
00067     #endif
00068 
00069     #if defined(WIN32) && !defined(_WIN32_WCE)
00070         #include <wchar.h>
00071         #include <time.h>
00072         #include <stdlib.h>
00073     #endif
00074 
00075     #ifdef _WIN32_WCE
00076         #include "base/time.h"
00077     #endif
00078 
00079     #if defined(__PALMOS__)
00080       #include "base/palmadapter.h"
00081     #endif
00082 
00083     #ifdef MALLOC_DEBUG
00084       #pragma warning(disable:4291)
00085       extern size_t dbgcounter;
00086       void *operator new(size_t s);
00087       void *operator new[](size_t s);
00088       void *operator new(size_t s, char* file, int line);
00089       void *operator new[](size_t s, char* file, int line);
00090       void operator delete(void* p);
00091       void operator delete[] (void* p);
00092 
00093       #define new new(__FILE__, __LINE__)
00094     #endif
00095 
00096     #ifndef SYNC4J_LINEBREAK
00097     // default encoding of line break in native strings,
00098     // may be overridden by adapter header files above
00099     # define SYNC4J_LINEBREAK TEXT("\r\n")
00100     #endif
00101 
00102     #ifndef WCHAR_PRINTF
00103 
00104     # define WCHAR_PRINTF "ls"
00105     #endif
00106 
00123     #include <assert.h>
00124 
00126 #endif
00127 
00128 

Generated on Thu Mar 6 14:25:04 2008 for Funambol C++ Client Library by  doxygen 1.5.2