From d0ad17a7188c8aa3479f94aa9d99339caff4033d Mon Sep 17 00:00:00 2001 From: Daniel James Date: Fri, 19 Oct 2007 09:55:10 +0000 Subject: [PATCH] Fix the deprecated warnings on Borland, should also check before using #warning. [SVN r40180] --- include/boost/functional/hash/deque.hpp | 2 +- include/boost/functional/hash/list.hpp | 2 +- include/boost/functional/hash/map.hpp | 2 +- include/boost/functional/hash/pair.hpp | 2 +- include/boost/functional/hash/set.hpp | 2 +- include/boost/functional/hash/vector.hpp | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/boost/functional/hash/deque.hpp b/include/boost/functional/hash/deque.hpp index 741fa0e..e320561 100644 --- a/include/boost/functional/hash/deque.hpp +++ b/include/boost/functional/hash/deque.hpp @@ -14,7 +14,7 @@ # pragma once #endif -#if defined(_MSC_VER) +#if defined(_MSC_VER) || defined(__BORLANDC__) #pragma message("Warning: boost/functional/hash/deque.hpp is deprecated, use boost/functional/hash.hpp instead.") #else #warning "boost/functional/hash/deque.hpp is deprecated, use boost/functional/hash.hpp instead." diff --git a/include/boost/functional/hash/list.hpp b/include/boost/functional/hash/list.hpp index 2870c60..03e8fa4 100644 --- a/include/boost/functional/hash/list.hpp +++ b/include/boost/functional/hash/list.hpp @@ -14,7 +14,7 @@ # pragma once #endif -#if defined(_MSC_VER) +#if defined(_MSC_VER) || defined(__BORLANDC__) #pragma message("Warning: boost/functional/hash/list.hpp is deprecated, use boost/functional/hash.hpp instead.") #else #warning "boost/functional/hash/list.hpp is deprecated, use boost/functional/hash.hpp instead." diff --git a/include/boost/functional/hash/map.hpp b/include/boost/functional/hash/map.hpp index e62f19a..7e5782c 100644 --- a/include/boost/functional/hash/map.hpp +++ b/include/boost/functional/hash/map.hpp @@ -14,7 +14,7 @@ # pragma once #endif -#if defined(_MSC_VER) +#if defined(_MSC_VER) || defined(__BORLANDC__) #pragma message("Warning: boost/functional/hash/map.hpp is deprecated, use boost/functional/hash.hpp instead.") #else #warning "boost/functional/hash/map.hpp is deprecated, use boost/functional/hash.hpp instead." diff --git a/include/boost/functional/hash/pair.hpp b/include/boost/functional/hash/pair.hpp index bd29478..6ad2063 100644 --- a/include/boost/functional/hash/pair.hpp +++ b/include/boost/functional/hash/pair.hpp @@ -14,7 +14,7 @@ # pragma once #endif -#if defined(_MSC_VER) +#if defined(_MSC_VER) || defined(__BORLANDC__) #pragma message("Warning: boost/functional/hash/pair.hpp is deprecated, use boost/functional/hash.hpp instead.") #else #warning "boost/functional/hash/pair.hpp is deprecated, use boost/functional/hash.hpp instead." diff --git a/include/boost/functional/hash/set.hpp b/include/boost/functional/hash/set.hpp index 8abe096..57fe0bf 100644 --- a/include/boost/functional/hash/set.hpp +++ b/include/boost/functional/hash/set.hpp @@ -14,7 +14,7 @@ # pragma once #endif -#if defined(_MSC_VER) +#if defined(_MSC_VER) || defined(__BORLANDC__) #pragma message("Warning: boost/functional/hash/set.hpp is deprecated, use boost/functional/hash.hpp instead.") #else #warning "boost/functional/hash/set.hpp is deprecated, use boost/functional/hash.hpp instead." diff --git a/include/boost/functional/hash/vector.hpp b/include/boost/functional/hash/vector.hpp index 3a71e6e..3f662d2 100644 --- a/include/boost/functional/hash/vector.hpp +++ b/include/boost/functional/hash/vector.hpp @@ -14,7 +14,7 @@ # pragma once #endif -#if defined(_MSC_VER) +#if defined(_MSC_VER) || defined(__BORLANDC__) #pragma message("Warning: boost/functional/hash/vector.hpp is deprecated, use boost/functional/hash.hpp instead.") #else #warning "boost/functional/hash/vector.hpp is deprecated, use boost/functional/hash.hpp instead."