Commit 81888fcd by Danny Smith Committed by Danny Smith

gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for non-zero value, not just if defined.

	* gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for non-zero
	value, not just if defined.

	* libstdc++-v3/config/os/mingw32/os_defines.h (__GTHREAD_HIDE_WIN32API):
	Define to 1 by defualt.
	(NOMINMAX): Define.

From-SVN: r67069
parent f48758e4
2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
* gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for non-zero
value, not just if defined.
Update copyright year.
2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR target/6428 PR target/6428
......
/* Threads compatibility routines for libgcc2 and libobjc. */ /* Threads compatibility routines for libgcc2 and libobjc. */
/* Compile this one with gcc. */ /* Compile this one with gcc. */
/* Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc. /* Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
Contributed by Mumit Khan <khan@xraylith.wisc.edu>. Contributed by Mumit Khan <khan@xraylith.wisc.edu>.
This file is part of GCC. This file is part of GCC.
...@@ -365,7 +365,7 @@ __gthread_active_p (void) ...@@ -365,7 +365,7 @@ __gthread_active_p (void)
#endif #endif
} }
#ifdef __GTHREAD_HIDE_WIN32API #if __GTHREAD_HIDE_WIN32API
/* The implementations are in config/i386/gthr-win32.c in libgcc.a. /* The implementations are in config/i386/gthr-win32.c in libgcc.a.
Only stubs are exposed to avoid polluting the C++ namespace with Only stubs are exposed to avoid polluting the C++ namespace with
......
2003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
* libstdc++-v3/config/os/mingw32/os_defines.h (__GTHREAD_HIDE_WIN32API):
Define to 1 by defualt.
(NOMINMAX): Define.
Update copyright year.
2003-05-21 Paolo Carlini <pcarlini@unitus.it> 2003-05-21 Paolo Carlini <pcarlini@unitus.it>
* include/std/std_fstream.h (_M_set_buffer): Fix indentation. * include/std/std_fstream.h (_M_set_buffer): Fix indentation.
......
// Specific definitions for generic platforms -*- C++ -*- // Specific definitions for generic platforms -*- C++ -*-
// Copyright (C) 2000 Free Software Foundation, Inc. // Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -34,4 +34,15 @@ ...@@ -34,4 +34,15 @@
// System-specific #define, typedefs, corrections, etc, go here. This // System-specific #define, typedefs, corrections, etc, go here. This
// file will come before all others. // file will come before all others.
// Define as 0, if you want, to enable inlining of gthread functions.
// By default, don't pollute libstdc++ with win32api names.
#if !defined (__GTHREAD_HIDE_WIN32API)
# define __GTHREAD_HIDE_WIN32API 1
#endif
// Don't let win32api windef.h define min and max as macros
// if included after stl_algobase.h.
#undef NOMINMAX
#define NOMINMAX 1
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment