incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: svn commit: r680574 - /stdcxx/branches/4.3.x/tests/src/thread.cpp
Date Tue, 29 Jul 2008 01:15:01 GMT
vitek@apache.org wrote:
> Author: vitek
> Date: Mon Jul 28 17:02:48 2008
> New Revision: 680574
> 
> URL: http://svn.apache.org/viewvc?rev=680574&view=rev
> Log:
> 2008-07-28  Travis Vitek  <vitek@roguewave.com>
> 
> 	* tests/src/thread.cpp [__EDG__]: Disable error for use of long long
> 	in pthreadtypes.h system header.

FYI: the easy way to do it is like so:
   http://svn.apache.org/viewvc?view=rev&revision=629306

The long and ugly conditional is only necessary in config
tests where the _RWSTD_EDG_ECCP macro isn't #defined yet.

Martin

> 
> 
> Modified:
>     stdcxx/branches/4.3.x/tests/src/thread.cpp
> 
> Modified: stdcxx/branches/4.3.x/tests/src/thread.cpp
> URL: http://svn.apache.org/viewvc/stdcxx/branches/4.3.x/tests/src/thread.cpp?rev=680574&r1=680573&r2=680574&view=diff
> ==============================================================================
> --- stdcxx/branches/4.3.x/tests/src/thread.cpp (original)
> +++ stdcxx/branches/4.3.x/tests/src/thread.cpp Mon Jul 28 17:02:48 2008
> @@ -83,6 +83,20 @@
>  
>  
>  #if defined (_RWSTD_POSIX_THREADS)
> +
> +#  if defined (__linux__)
> +#    if    defined (__EDG__)                \
> +        && !defined (__DECCXX)              \
> +        && !defined (__HP_aCC)              \
> +        && !defined (__INTEL_COMPILER)      \
> +        && !defined (_SGI_COMPILER_VERSION)
> +       // disable error #450-D: the type "long long" is nonstandard
> +       // when using the vanilla EDG eccp in strict mode (i.e., w/o
> +       // long long support)
> +#      pragma diag_suppress 450
> +#    endif   // vanilla EDG eccp on Linux
> +#  endif
> +
>  #  include <pthread.h>
>  
>  _TEST_EXPORT int
> 
> 


Mime
View raw message