"Fossies" - the Fresh Open Source Software Archive

Member "postal-0.76/port.h.in" (10 Apr 2008, 788 Bytes) of package /linux/privat/postal-0.76.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #ifndef PORT_H
    2 #define PORT_H
    3 
    4 @semun@
    5 @bool@
    6 @snprintf@
    7 #ifndef _LARGEFILE64_SOURCE
    8 @large_file@
    9 #endif
   10 #ifdef _LARGEFILE64_SOURCE
   11 #define OFF_T_PRINTF "%lld"
   12 #else
   13 #define OFF_T_PRINTF "%d"
   14 #endif
   15 
   16 #if @true_false@
   17 #define false 0
   18 #define true 1
   19 #endif
   20 
   21 typedef struct timeval TIMEVAL_TYPE;
   22 
   23 #ifdef _LARGEFILE64_SOURCE
   24 #define OFF_TYPE off64_t
   25 #define file_lseek lseek64
   26 #define file_creat creat64
   27 #define file_open open64
   28 #else
   29 #define OFF_TYPE off_t
   30 #define file_lseek lseek
   31 #define file_creat creat
   32 #define file_open open
   33 #endif
   34 
   35 typedef unsigned int UINT;
   36 typedef unsigned long ULONG;
   37 typedef const char * PCCHAR;
   38 typedef char * PCHAR;
   39 typedef PCHAR const CPCHAR;
   40 typedef PCCHAR const CPCCHAR;
   41 typedef void * PVOID;
   42 typedef PVOID const CPVOID;
   43 typedef const CPVOID CPCVOID;
   44 
   45 #endif