Ticket #4474: config.patch

File config.patch, 2.2 KB (added by artyomtnk@…, 12 years ago)
  • boost/config/platform/vms.hpp

    diff -rupN boost_1_43_0/boost/config/platform/vms.hpp boost_vms_1_43_0/boost/config/platform/vms.hpp
    old new  
     1//  (C) Copyright John Maddock 2001 - 2003.
     2//  Use, modification and distribution are subject to the
     3//  Boost Software License, Version 1.0. (See accompanying file
     4//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
     5
     6// Modified for OpenVMS by Artyom Beilis 2010.
     7
     8#ifndef BOOST_CONFIG_PLATFORM_VMS_HPP
     9#define BOOST_CONFIG_PLATFORM_VMS_HPP
     10
     11#define BOOST_PLATFORM "OpenVMS"
     12
     13#undef  BOOST_HAS_STDINT_H
     14#define BOOST_HAS_UNISTD_H
     15#define BOOST_HAS_NL_TYPES_H
     16#define BOOST_HAS_GETTIMEOFDAY
     17#define BOOST_HAS_DIRENT_H
     18#define BOOST_HAS_PTHREADS
     19#define BOOST_HAS_NANOSLEEP
     20#define BOOST_HAS_CLOCK_GETTIME
     21#define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
     22#define BOOST_HAS_LOG1P
     23#define BOOST_HAS_EXPM1
     24#define BOOST_HAS_THREADS
     25#undef  BOOST_HAS_SCHED_YIELD
     26
     27#endif
     28
  • boost/config/select_platform_config.hpp

    diff -rupN boost_1_43_0/boost/config/select_platform_config.hpp boost_vms_1_43_0/boost/config/select_platform_config.hpp
    old new  
    6969// Symbian:
    7070#  define BOOST_PLATFORM_CONFIG "boost/config/platform/symbian.hpp"
    7171
     72#elif defined(__VMS)
     73
     74#define BOOST_PLATFORM_CONFIG "boost/config/platform/vms.hpp"
     75
    7276#else
    7377
     78
    7479#  if defined(unix) \
    7580      || defined(__unix) \
    7681      || defined(_XOPEN_SOURCE) \
  • boost/cstdint.hpp

    diff -rupN boost_1_43_0/boost/cstdint.hpp boost_vms_1_43_0/boost/cstdint.hpp
    old new namespace boost  
    137137
    138138} // namespace boost
    139139
    140 #elif defined(__FreeBSD__) && (__FreeBSD__ <= 4) || defined(__osf__)
     140#elif defined(__FreeBSD__) && (__FreeBSD__ <= 4) || defined(__osf__) || defined(__VMS)
    141141// FreeBSD and Tru64 have an <inttypes.h> that contains much of what we need.
    142142# include <inttypes.h>
    143143