You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by an...@locus.apache.org on 2000/11/07 19:44:28 UTC

cvs commit: xml-xerces/c/src/util/Platforms/Win32 Win32PlatformUtils.cpp

andyh       00/11/07 10:44:27

  Modified:    c/src/util/Platforms/Win32 Win32PlatformUtils.cpp
  Log:
  WIn32 - Changed InterlockedCompareExchange for compatibility with Borland BCB5
  Pieter Van_Dyck
  
  Revision  Changes    Path
  1.26      +5 -5      xml-xerces/c/src/util/Platforms/Win32/Win32PlatformUtils.cpp
  
  Index: Win32PlatformUtils.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/util/Platforms/Win32/Win32PlatformUtils.cpp,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- Win32PlatformUtils.cpp	2000/08/14 17:51:54	1.25
  +++ Win32PlatformUtils.cpp	2000/11/07 18:44:25	1.26
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: Win32PlatformUtils.cpp,v 1.25 2000/08/14 17:51:54 jpolast Exp $
  + * $Id: Win32PlatformUtils.cpp,v 1.26 2000/11/07 18:44:25 andyh Exp $
    */
   
   // ---------------------------------------------------------------------------
  @@ -646,11 +646,11 @@
       //  Note we have to cast off the constness of some of these because
       //  the system APIs are not C++ aware in all cases.
       //
  -    return ::InterlockedCompareExchange
  +    return (void *) ::InterlockedCompareExchange
       (
  -        toFill
  -        , (void*)newValue
  -        , (void*)toCompare
  +        (long *)toFill
  +        , (long)newValue
  +        , (long)toCompare
       );
   
       #endif