From bbb2c5fee87baa345ff5c16404204054442f5c11 Mon Sep 17 00:00:00 2001 From: eilers Date: Tue, 22 Oct 2002 09:07:07 +0000 Subject: fixing incompatibility to orignal sharp rom --- (limited to 'library/backend/vobject_p.h') diff --git a/library/backend/vobject_p.h b/library/backend/vobject_p.h index 0d0a2a8..bab22bb 100644 --- a/library/backend/vobject_p.h +++ b/library/backend/vobject_p.h @@ -398,8 +398,23 @@ extern VObject* Parse_MIME_FromFile(CFile *file); extern VObject* Parse_MIME_FromFile(FILE *file); #endif +#define __SHARP_COMP_ + +#ifndef __SHARP_COMP_ extern DLLEXPORT(const char *) vObjectTypeInfo(VObject *o); +#else +// This function is not available in the Sharp ROM for SL 5500 ! +// Therefore I have to move it into the header file.. (se) + +inline const char* vObjectTypeInfo(VObject *o) +{ + const char *type = vObjectName( o ); + if ( strcmp( type, "TYPE" ) == 0 ) + type = vObjectStringZValue( o ); + return type; +} +#endif #endif /* __VOBJECT_H__ */ -- cgit v0.9.0.2