Ignore:
Timestamp:
Jan 3, 2010, 7:13:32 PM (11 years ago)
Author:
rbri
Message:

DJVU plugin: djvulibre updated to version 3.5.22

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libdjvu/ByteStream.cpp

    r206 r280  
    5454//C- +------------------------------------------------------------------
    5555//
    56 // $Id: ByteStream.cpp,v 1.23 2007/03/25 20:48:29 leonb Exp $
    57 // $Name: release_3_5_19 $
     56// $Id: ByteStream.cpp,v 1.24 2007/07/14 01:21:56 leonb Exp $
     57// $Name: release_3_5_22 $
    5858
    5959// From: Leon Bottou, 1/31/2002
     
    7878#include "DjVuMessage.h"
    7979#include <fcntl.h>
    80 #if defined(WIN32) || defined(__CYGWIN32__)
     80/* Lucide */
     81#if defined(WIN32) || defined(__CYGWIN32__) || defined(OS2)
    8182# include <io.h>
    8283#endif
     
    8889#endif
    8990
    90 #if defined(UNIX) || defined(OS2)
     91#ifdef UNIX
    9192# include <sys/types.h>
    9293# include <sys/stat.h>
     
    9697#  include <sys/mman.h>
    9798# endif
    98 #elif defined(macintosh)
    99 # include <unistd.h>
     99#endif
     100
     101#ifdef macintosh
     102# ifndef UNIX
     103#  include <unistd.h>
    100104_MSL_IMP_EXP_C int _dup(int);
    101105_MSL_IMP_EXP_C int _dup2(int,int);
     
    103107__inline int dup(int _a ) { return _dup(_a);}
    104108__inline int dup2(int _a, int _b ) { return _dup2(_a, _b);}
     109# endif
     110#endif
     111
     112#ifdef WIN32
     113# if !defined(__MINGW32__) && !defined(__CYGWIN32__)
     114#  define close _close
     115#  define fdopen _fdopen
     116#  define dup _dup
     117# endif
    105118#endif
    106119
Note: See TracChangeset for help on using the changeset viewer.