Ignore:
Timestamp:
May 3, 2006, 10:14:37 AM (15 years ago)
Author:
Eugene Romanenko
Message:

update makefiles, remove absolute paths, update djvulibre to version 3.5.17

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libdjvu/GException.h

    r15 r17  
    5252//C- +------------------------------------------------------------------
    5353//
    54 // $Id: GException.h,v 1.10 2005/06/07 23:42:22 leonb Exp $
    55 // $Name: release_3_5_16 $
     54// $Id: GException.h,v 1.11 2005/11/12 15:52:25 leonb Exp $
     55// $Name: $
    5656
    5757#ifndef _GEXCEPTION_H_
    5858#define _GEXCEPTION_H_
    5959#ifdef HAVE_CONFIG_H
    60 #include "config.h"
     60# include "config.h"
    6161#endif
    6262#if NEED_GNUG_PRAGMAS
     
    117117    Andrei Erofeev <eaf@geocities.com> -- fixed message memory allocation.
    118118    @version
    119     #$Id: GException.h,v 1.10 2005/06/07 23:42:22 leonb Exp $# */
     119    #$Id: GException.h,v 1.11 2005/11/12 15:52:25 leonb Exp $# */
    120120//@{
    121121
    122122#include "DjVuGlobal.h"
     123
     124// Check if compiler supports native exceptions
     125#ifdef HAVE_CONFIG_H
     126# if HAVE_EXCEPTIONS
     127#  define CPP_SUPPORTS_EXCEPTIONS
     128# endif
     129#else
     130# if defined(_MSC_VER)
     131#  define CPP_SUPPORTS_EXCEPTIONS
     132# endif
     133# if defined(__MWERKS__)
     134#  define CPP_SUPPORTS_EXCEPTIONS
     135# endif
     136# if defined(__EXCEPTIONS)
     137#  define CPP_SUPPORTS_EXCEPTIONS
     138# endif
     139#endif
     140// Decide which exception model to use
     141#ifndef CPP_SUPPORTS_EXCEPTIONS
     142# ifndef USE_EXCEPTION_EMULATION
     143#  define USE_EXCEPTION_EMULATION
     144# endif
     145#endif
     146
     147#ifdef USE_EXCEPTION_EMULATION
     148# include <setjmp.h>
     149#endif
    123150
    124151#ifdef HAVE_NAMESPACES
     
    126153# ifdef NOT_DEFINED // Just to fool emacs c++ mode
    127154}
    128 #endif
    129 #endif
    130 
    131 
     155# endif
     156#endif
    132157
    133158/** Exception class. 
     
    227252#undef G_THROW_OTHER
    228253
    229 // Check if compiler supports native exceptions
    230 #if defined(_MSC_VER)
    231 #define CPP_SUPPORTS_EXCEPTIONS
    232 #endif
    233 #if defined(__MWERKS__)
    234 #define CPP_SUPPORTS_EXCEPTIONS
    235 #endif
    236 #if defined(__EXCEPTIONS)
    237 #define CPP_SUPPORTS_EXCEPTIONS
    238 #endif
    239 // Decide which exception model to use
    240 #ifndef CPP_SUPPORTS_EXCEPTIONS
    241 #ifndef USE_EXCEPTION_EMULATION
    242 #define USE_EXCEPTION_EMULATION
    243 #endif
    244 #endif
    245 
    246 
    247254#ifndef USE_EXCEPTION_EMULATION
    248255
     
    278285// Compiler does not support ANSI C++ exceptions.
    279286// Emulate with setjmp/longjmp.
    280 
    281 #include <setjmp.h>
    282287
    283288class GExceptionHandler {
Note: See TracChangeset for help on using the changeset viewer.