-rw-r--r-- | library/backend/vobject_p.h | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/library/backend/vobject_p.h b/library/backend/vobject_p.h index bab22bb..f969898 100644 --- a/library/backend/vobject_p.h +++ b/library/backend/vobject_p.h | |||
@@ -101,7 +101,11 @@ For example: | |||
101 | #undef DLLEXPORT | 101 | #undef DLLEXPORT |
102 | //#include <qtopia/qpeglobal.h> | ||
102 | #include <qglobal.h> | 103 | #include <qglobal.h> |
103 | #if defined(Q_WS_WIN) | 104 | |
105 | #if defined(QTOPIA_MAKEDLL) | ||
104 | #define DLLEXPORT(t) __declspec(dllexport) t | 106 | #define DLLEXPORT(t) __declspec(dllexport) t |
107 | #elif defined(QTOPIA_DLL) | ||
108 | #define DLLEXPORT(t) __declspec(dllimport) t | ||
105 | #else | 109 | #else |
106 | #define DLLEXPORT(t) t | 110 | #define DLLEXPORT(t) t |
107 | #endif | 111 | #endif |
@@ -353,3 +357,3 @@ extern DLLEXPORT(int) vObjectValueType(VObject *o); | |||
353 | 357 | ||
354 | extern const char** fieldedProp; | 358 | extern DLLEXPORT(const char**) fieldedProp; |
355 | 359 | ||
@@ -370,3 +374,3 @@ the DLL LIB you will get a link error. | |||
370 | */ | 374 | */ |
371 | extern void writeVObject(FILE *fp, VObject *o); | 375 | extern DLLEXPORT(void) writeVObject(FILE *fp, VObject *o); |
372 | 376 | ||
@@ -395,24 +399,9 @@ will get a link error. | |||
395 | #if INCLUDEMFC | 399 | #if INCLUDEMFC |
396 | extern VObject* Parse_MIME_FromFile(CFile *file); | 400 | extern DLLEXPORT(VObject*) Parse_MIME_FromFile(CFile *file); |
397 | #else | 401 | #else |
398 | extern VObject* Parse_MIME_FromFile(FILE *file); | 402 | extern DLLEXPORT(VObject*) Parse_MIME_FromFile(FILE *file); |
399 | #endif | 403 | #endif |
400 | 404 | ||
401 | #define __SHARP_COMP_ | ||
402 | |||
403 | #ifndef __SHARP_COMP_ | ||
404 | extern DLLEXPORT(const char *) vObjectTypeInfo(VObject *o); | 405 | extern DLLEXPORT(const char *) vObjectTypeInfo(VObject *o); |
405 | 406 | ||
406 | #else | ||
407 | // This function is not available in the Sharp ROM for SL 5500 ! | ||
408 | // Therefore I have to move it into the header file.. (se) | ||
409 | |||
410 | inline const char* vObjectTypeInfo(VObject *o) | ||
411 | { | ||
412 | const char *type = vObjectName( o ); | ||
413 | if ( strcmp( type, "TYPE" ) == 0 ) | ||
414 | type = vObjectStringZValue( o ); | ||
415 | return type; | ||
416 | } | ||
417 | #endif | ||
418 | 407 | ||