Changeset 280 for trunk/libdjvu/GOS.cpp


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/GOS.cpp

    r206 r280  
    5454//C- +------------------------------------------------------------------
    5555//
    56 // $Id: GOS.cpp,v 1.14 2007/03/25 20:48:32 leonb Exp $
    57 // $Name: release_3_5_19 $
     56// $Id: GOS.cpp,v 1.17 2008/03/10 13:58:54 leonb Exp $
     57// $Name: release_3_5_22 $
    5858
    5959#ifdef HAVE_CONFIG_H
     
    7575#include <string.h>
    7676
    77 #ifdef WIN32
    78 # include <atlbase.h>
     77#if defined(__CYGWIN32__)
     78# define UNIX 1
     79#endif
     80
     81#if defined(WIN32) && !defined(UNIX)
    7982# include <windows.h>
    8083# include <direct.h>
    81 #endif
    82 
    83 #ifdef OS2
     84# define getcwd _getcwd
     85#endif
     86
     87#if defined(OS2)
    8488# define INCL_DOS
    8589# include <os2.h>
     90#endif
     91
     92#if defined(macintosh) && !defined(UNIX)
     93# include <unix.h>
     94# include <errno.h>
     95# include <unistd.h>
    8696#endif
    8797
     
    97107#endif
    98108
    99 #ifdef macintosh
    100 # include <unix.h>
    101 # include <errno.h>
    102 # include <unistd.h>
    103 #endif
    104109
    105110// -- TRUE FALSE
     
    166171finddirsep(const GUTF8String &fname)
    167172{
    168 #if defined(UNIX)
     173/* Lucide */
     174#if defined(WIN32) || defined(OS2)
     175  return fname.rcontains("\\/",0);
     176#elif defined(UNIX)
    169177  return fname.rsearch('/',0);
    170 #elif defined(WIN32) || defined(OS2)
    171   return fname.rcontains("\\/",0);
    172178#elif defined(macintosh)
    173179  return fname.rcontains(":/",0);
    174180#else
    175 #error "Define something here for your operating system"
     181# error "Define something here for your operating system"
    176182#endif 
    177183}
     
    343349  return GNativeString(string_buffer).getNative2UTF8();//MBCS cvt
    344350#else
    345 #error "Define something here for your operating system"
     351# error "Define something here for your operating system"
    346352#endif
    347353}
Note: See TracChangeset for help on using the changeset viewer.