home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 May / PCFMay2001.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / usebormm.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  1.2 KB  |  49 lines

  1. /*-----------------------------------------------------------------------*
  2.  * filename - usebormm.h
  3.  *
  4.  *   Include this header file into one source file to force the RTL
  5.  *   (either static or dynamic) to use the "Borland" memory manager DLL.
  6.  *   The hooking and usage of the memory DLL is done inside the RTL when
  7.  *   the memory DLL is detected to be in memory already.
  8.  *
  9.  *   This header will force the loader to load the DLL when the app starts
  10.  *
  11.  *-----------------------------------------------------------------------*/
  12.  
  13. /*
  14.  *      C/C++ Run Time Library - Version 10.0
  15.  *
  16.  *      Copyright (c) 1998, 2000 by Inprise Corporation
  17.  *      All Rights Reserved.
  18.  *
  19.  */
  20.  
  21. /* $Revision:   9.0  $        */
  22.  
  23. #ifndef __USEBORMM_H
  24. #define __USEBORMM_H
  25.  
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29.  
  30. #pragma option push -V?- -w-use -w-aus
  31.  
  32. #pragma comment(lib, "usebormm.lib")  /* Bring in the helper lib */
  33.  
  34. static void __dummy_function_for_usebormm (void)
  35. {
  36. #   pragma startup __dummy_function_for_usebormm 64
  37.     void _RTLENTRY __CRTL_MEM_PullInUseBorMMLib (void);
  38.  
  39.     __CRTL_MEM_PullInUseBorMMLib();
  40. }
  41.  
  42. #pragma option pop
  43.  
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47.  
  48.  
  49. #endif /* __USEBORMM_H */