diff src/libpst.h @ 75:987aa872294e stable-0-6-11

Use ftello/fseeko to properly handle large files. Document and properly use datasize field in b5 blocks. Fix some MSVC compile issues and collect MSVC dependencies into one place.
author Carl Byington <carl@five-ten-sg.com>
date Tue, 03 Jun 2008 12:00:58 -0700
parents 3cb02cb1e6cd
children 56fa05fd5271
line wrap: on
line diff
--- a/src/libpst.h	Thu May 29 18:59:38 2008 -0700
+++ b/src/libpst.h	Tue Jun 03 12:00:58 2008 -0700
@@ -10,19 +10,17 @@
 #ifndef LIBPST_H
 #define LIBPST_H
 
-#include <stdint.h>
-
 #ifndef  _MSC_VER
-
-#ifndef FILETIME_DEFINED
-#define FILETIME_DEFINED
-//Win32 Filetime struct - copied from WINE
-typedef struct {
-  uint32_t dwLowDateTime;
-  uint32_t dwHighDateTime;
-} FILETIME;
-#endif //ifndef FILETIME_DEFINED
-#endif //ifndef  _MSC_VER
+    #include <stdint.h>
+    #ifndef FILETIME_DEFINED
+        #define FILETIME_DEFINED
+        //Win32 Filetime struct - copied from WINE
+        typedef struct {
+          uint32_t dwLowDateTime;
+          uint32_t dwHighDateTime;
+        } FILETIME;
+    #endif
+#endif
 
 // According to Jan Wolter, sys/param.h is the most portable source of endian
 // information on UNIX systems. see http://www.unixpapa.com/incnote/byteorder.html
@@ -59,14 +57,6 @@
 #endif // BYTE_ORDER
 
 
-#ifdef _MSC_VER
-#include "windows.h"
-#define int32_t  int
-#define uint32_t unsigned int
-#define int16_t  short int
-#define uint16_t unsigned short int
-#endif // _MSC_VER
-
 #define PST_TYPE_NOTE 1
 #define PST_TYPE_APPOINTMENT 8
 #define PST_TYPE_CONTACT 9