UUE decoder fix

This commit is contained in:
Alexander S. Aganichev
2002-10-20 19:42:11 +00:00
parent 26c5617ece
commit 542867d190
5 changed files with 30 additions and 15 deletions

View File

@@ -44,10 +44,11 @@
#undef SMBEXPORT
#endif
#ifndef __FLAT__
#define __FLAT__ /* only supporting 32-bit targets now */
#endif
#ifdef _WIN32
#ifndef __FLAT__
#define __FLAT__
#endif
#ifdef __BORLANDC__
#define SMBCALL __stdcall
#else
@@ -62,10 +63,7 @@
#else /* self-contained executable */
#define SMBEXPORT
#endif
#elif defined(__unix__) || defined(__GNUC__)
#ifndef __FLAT__
#define __FLAT__
#endif
#elif defined __unix__
#define SMBCALL
#define SMBEXPORT
#else
@@ -133,9 +131,10 @@ SMBEXPORT int SMBCALL smb_incdat(smb_t* smb, ulong offset, ulong length, ushort
SMBEXPORT int SMBCALL smb_freemsg(smb_t* smb, smbmsg_t* msg);
SMBEXPORT int SMBCALL smb_freemsgdat(smb_t* smb, ulong offset, ulong length, ushort headers);
SMBEXPORT int SMBCALL smb_freemsghdr(smb_t* smb, ulong offset, ulong length);
SMBEXPORT void SMBCALL smb_freemsgtxt(char HUGE16* buf);
SMBEXPORT void SMBCALL smb_freemsgtxt(char* buf);
SMBEXPORT int SMBCALL smb_copymsgmem(smbmsg_t* destmsg, smbmsg_t* srcmsg);
SMBEXPORT char HUGE16* SMBCALL smb_getmsgtxt(smb_t* smb, smbmsg_t* msg, ulong mode);
SMBEXPORT char* SMBCALL smb_getmsgtxt(smb_t* smb, smbmsg_t* msg, ulong mode);
SMBEXPORT int SMBCALL smb_tzutc(short timezone);
/* FILE pointer I/O functions */