From 1021cbf60c7ddd2a9dc5a57595c6404e804a06c9 Mon Sep 17 00:00:00 2001 From: levine Date: Sat, 21 Feb 1998 14:13:06 +0000 Subject: null f{,un}lockfile with ACE_HAS_DCE_DRAFT4_THREADS --- TAO/tao/debug.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/TAO/tao/debug.cpp b/TAO/tao/debug.cpp index 2a641c607f9..59104f35e6a 100644 --- a/TAO/tao/debug.cpp +++ b/TAO/tao/debug.cpp @@ -14,10 +14,11 @@ #include "tao/corba.h" -#if !defined (ACE_HAS_PTHREADS) // _POSIX_THREAD_SAFE_FUNCTIONS implied -#define flockfile(f) -#define funlockfile(f) -#endif /* ACE_HAS_PTHREADS */ +#if !defined (ACE_HAS_PTHREADS) && !defined (ACE_HAS_DCE_DRAFT4_THREADS) + // _POSIX_THREAD_SAFE_FUNCTIONS implied +# define flockfile(f) +# define funlockfile(f) +#endif /* ! ACE_HAS_PTHREADS && ! ACE_HAS_DCE_DRAFT4_THREADS */ u_int TAO_Export TAO_debug_level = 0; char * TAO_Export TAO_debug_filter = "l"; @@ -71,7 +72,7 @@ emit_prefix (FILE *stream) } // !defined (ACE_HAS_PTHREADS) -#else +#else // Without threads, guard initialization so it can be repeated, // and don't emit the thread ID in the messages. @@ -243,7 +244,7 @@ dmsg_opaque (char *_FAR label, for (i = 0; i < len; i++) if (!isprint (buffer [i])) break; - + if (i < len) { if (len >= 20) -- cgit v1.2.1