Ignore:
Timestamp:
Jul 13, 2017, 9:01:05 AM (22 months ago)
Author:
Juanma
Message:

Initial release

File:
1 edited

Legend:

Unmodified
Added
Removed
  • squid-ssl/trunk/fuentes/libltdl/libltdl/lt_system.h

    r5495 r5496  
    11/* lt_system.h -- system portability abstraction layer
    22
    3    Copyright (C) 2004, 2007, 2010-2015 Free Software Foundation, Inc.
     3   Copyright (C) 2004, 2007, 2010 Free Software Foundation, Inc.
    44   Written by Gary V. Vaughan, 2004
    55
     
    2929*/
    3030
    31 #if !defined LT_SYSTEM_H
     31#if !defined(LT_SYSTEM_H)
    3232#define LT_SYSTEM_H 1
    3333
     
    3737
    3838/* Some systems do not define EXIT_*, even with STDC_HEADERS.  */
    39 #if !defined EXIT_SUCCESS
     39#if !defined(EXIT_SUCCESS)
    4040# define EXIT_SUCCESS 0
    4141#endif
    42 #if !defined EXIT_FAILURE
     42#if !defined(EXIT_FAILURE)
    4343# define EXIT_FAILURE 1
    4444#endif
     
    5454   so that C++ compilers don't mangle their names.  Use LTDL_END_C_DECLS at
    5555   the end of C declarations. */
    56 #if defined __cplusplus
     56#if defined(__cplusplus)
    5757# define LT_BEGIN_C_DECLS       extern "C" {
    5858# define LT_END_C_DECLS         }
     
    6262#endif
    6363
    64 /* LT_STMT_START/END are used to create macros that expand to a
     64/* LT_STMT_START/END are used to create macros which expand to a
    6565   a single compound statement in a portable way.  */
    66 #if defined  __GNUC__ && !defined  __STRICT_ANSI__ && !defined  __cplusplus
     66#if defined (__GNUC__) && !defined (__STRICT_ANSI__) && !defined (__cplusplus)
    6767#  define LT_STMT_START        (void)(
    6868#  define LT_STMT_END          )
    6969#else
    70 #  if (defined sun || defined __sun__)
     70#  if (defined (sun) || defined (__sun__))
    7171#    define LT_STMT_START      if (1)
    7272#    define LT_STMT_END        else (void)0
     
    7878
    7979/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
    80 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
    81 /* DATA imports from DLLs on WIN32 can't be const, because runtime
     80#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
     81/* DATA imports from DLLs on WIN32 con't be const, because runtime
    8282   relocations are performed -- see ld's documentation on pseudo-relocs.  */
    8383# define LT_DLSYM_CONST
    84 #elif defined __osf__
     84#elif defined(__osf__)
    8585/* This system does not cope well with relocations in const data.  */
    8686# define LT_DLSYM_CONST
     
    9292   To match the values set by recent Cygwin compilers, make sure that if
    9393   __CYGWIN__ is defined (after canonicalisation), __WINDOWS__ is NOT!  */
    94 #if defined __CYGWIN32__ && !defined __CYGWIN__
     94#if defined(__CYGWIN32__) && !defined(__CYGWIN__)
    9595# define __CYGWIN__ __CYGWIN32__
    9696#endif
    97 #if defined __CYGWIN__
    98 # if defined __WINDOWS__
     97#if defined(__CYGWIN__)
     98# if defined(__WINDOWS__)
    9999#   undef __WINDOWS__
    100100# endif
    101 #elif defined _WIN32
     101#elif defined(_WIN32)
    102102# define __WINDOWS__ _WIN32
    103 #elif defined WIN32
     103#elif defined(WIN32)
    104104# define __WINDOWS__ WIN32
    105105#endif
    106 #if defined __CYGWIN__ && defined __WINDOWS__
     106#if defined(__CYGWIN__) && defined(__WINDOWS__)
    107107# undef __WINDOWS__
    108108#endif
     
    111111/* DLL building support on win32 hosts;  mostly to workaround their
    112112   ridiculous implementation of data symbol exporting. */
    113 #if !defined LT_SCOPE
    114 #  if defined __WINDOWS__ || defined __CYGWIN__
    115 #    if defined DLL_EXPORT              /* defined by libtool (if required) */
     113#if !defined(LT_SCOPE)
     114#  if defined(__WINDOWS__) || defined(__CYGWIN__)
     115#    if defined(DLL_EXPORT)             /* defined by libtool (if required) */
    116116#      define LT_SCOPE  extern __declspec(dllexport)
    117117#    endif
    118 #    if defined LIBLTDL_DLL_IMPORT      /* define if linking with this dll */
     118#    if defined(LIBLTDL_DLL_IMPORT)     /* define if linking with this dll */
    119119       /* note: cygwin/mingw compilers can rely instead on auto-import */
    120120#      define LT_SCOPE  extern __declspec(dllimport)
    121121#    endif
    122122#  endif
    123 #  if !defined LT_SCOPE                 /* static linking or !__WINDOWS__ */
     123#  if !defined(LT_SCOPE)                /* static linking or !__WINDOWS__ */
    124124#    define LT_SCOPE    extern
    125125#  endif
    126126#endif
    127127
    128 #if defined __WINDOWS__
     128#if defined(__WINDOWS__)
    129129/* LT_DIRSEP_CHAR is accepted *in addition* to '/' as a directory
    130130   separator when it is set. */
     
    135135#endif
    136136
    137 #if defined _MSC_VER /* Visual Studio */
     137#if defined(_MSC_VER) /* Visual Studio */
    138138#  define R_OK 4
    139139#endif
     
    141141/* fopen() mode flags for reading a text file */
    142142#undef  LT_READTEXT_MODE
    143 #if defined __WINDOWS__ || defined __CYGWIN__
     143#if defined(__WINDOWS__) || defined(__CYGWIN__)
    144144#  define LT_READTEXT_MODE "rt"
    145145#else
     
    164164#endif
    165165
    166 #endif /*!defined LT_SYSTEM_H*/
     166#endif /*!defined(LT_SYSTEM_H)*/
Note: See TracChangeset for help on using the changeset viewer.