home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / YellowBox / Kits / MiscTableScroll-138.1 / Palettes / MiscTableScroll / Framework / new.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-31  |  1.7 KB  |  40 lines

  1. #ifndef __MiscTableScroll_new_h
  2. #define __MiscTableScroll_new_h
  3. //=============================================================================
  4. //
  5. //    Copyright (C) 1997 by Paul S. McCarthy and Eric Sunshine.
  6. //        Written by Paul S. McCarthy and Eric Sunshine.
  7. //                All Rights Reserved.
  8. //
  9. //    This notice may not be removed from this source code.
  10. //
  11. //    This object is included in the MiscKit by permission from the authors
  12. //    and its use is governed by the MiscKit license, found in the file
  13. //    "License.rtf" in the MiscKit distribution.  Please refer to that file
  14. //    for a list of all applicable permissions and restrictions.
  15. //    
  16. //=============================================================================
  17. //-----------------------------------------------------------------------------
  18. // new.h
  19. //
  20. //    A local version of <new.h> which defines a default "placement new"
  21. //    operator.  This file is required since <new.h> is entirely missing
  22. //    in OPENSTEP 4.2 for Mach, and the one redistributed from Microsoft
  23. //    in OPENSTEP 4.2 for NT is buggy (and crashes the compilation).
  24. //
  25. //    This file is compatible with OPENSTEP 4.1, and therefore does not
  26. //    compromise its continued support.
  27. //
  28. //-----------------------------------------------------------------------------
  29. //-----------------------------------------------------------------------------
  30. // $Id: new.h,v 1.1 97/06/18 09:54:27 sunshine Exp $
  31. // $Log:    new.h,v $
  32. // Revision 1.1  97/06/18  09:54:27  sunshine
  33. // v125.9: Patch for broken <new.h> in OPENSTEP 4.2 for Mach and NT.
  34. // 
  35. //-----------------------------------------------------------------------------
  36.  
  37. inline void* operator new( size_t, void* ptr ) { return ptr; }
  38.  
  39. #endif // __MiscTableScroll_new_h
  40.