4 * Authors: Beat Forster (bfo@synthesis.ch)
7 * SDK include definitions
9 * Copyright (c) 2004-2009 by Synthesis AG (www.synthesis.ch)
14 #ifndef SYNC_INCLUDE_H
15 #define SYNC_INCLUDE_H
17 #include "target_options.h"
18 #include "generic_types.h" /* some basic defs, which aren't available */
19 #include "engine_defs.h"
20 #include "syerror.h" /* "syerror.h" uses "generic_types.h" */
22 #if !defined(__cplusplus) && !defined(__OBJC__)
23 #if !defined(SYSYNC_ENGINE) || !defined(__MACH__) || defined(__GNUC__)
24 typedef unsigned char bool;
30 #if !defined SYSYNC_ENGINE || !defined LINUX || defined __MACH__
31 typedef unsigned long ulong;
35 /* ==> if it is running within the SyncML engine */
38 #include "platform_file.h"
44 #include "sysync_debug.h"
47 /* ==> if running standalone, e.g. at a plug-in module */
48 #include <stdio.h> /* used for printf calls */
49 #include <stdlib.h> /* used for the malloc/free calls */
50 #include <string.h> /* used for strcpy/strlen calls */
53 #ifndef __MACH__ /* MACH: IOFBF/RAND_MAX duplicate problem */
54 #include <string> /* STL includes */
61 #include <typeinfo.h> /* type_info class */
67 #if defined __MACH__ && !defined __GNUC__ /* used for va_list support */
68 #include <mw_stdarg.h>
75 #ifndef FILEOBJ_SUPPORT
76 #define FILEOBJ_SUPPORT 1
79 #define PLATFORM_FILE 1
82 /* JAVA native interface JNI */
87 // #include <JavaVM/jni.h>
94 #endif /* SYNC_INCLUDE_H */