Recommended

Multicore community

 

Articles

Intel.com

Microsoft.co.il

 

Community

Microsoft Forums

Intel's Forum

Intel's Multicore Community

 

Resources

http://msdn.com/concurrency

Intel Multicore

NVidia Multicore GPU

 

Downloads

.Net Parallel Extensions

Intel's TBB

WinModules   

 

Tools

AsyncOp Logger

Intel thread analysis

Intel VTune

 

Contact

Asaf Shelly

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

-->

 

 

 

 

 

 
2 / 2
 
 
 
 
 
 
 
    // /  This HTML file was produced by the ProjectPublisher WebService, By Asaf Shelly                   / //
   // /    WebService URL is: http://Services.AsyncOp.com/ProjectPublisher/ProjectPublisherWSvc.asmx      / //
  // /    Learn more and find the source code here: http://AsyncOp.com                                   / //


//////////////////////////////////////////////////////////////////////////////////////////
/////
/// This is part of a collection of libraries developed by Asaf Shelly
/// More about Asaf Shelly: http://Asaf.Shelly.co.il
/// More about the libraries: http://AsyncOp.com
///
/// You are permitted to use, copy, publish, execute and redistribute
/// this code and library free of charge for the duration of the copyright
//
//////////////////////////////////////////////////////////////////////////////////////////
///// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
///// DEALINGS IN THE SOFTWARE
//////////////////////////////////////////////////////////////////////////////////////////
/////
/// For more details and an explicit legal permission you can contact me
/// directly:
/// Asaf Shelly
/// OpenSource@Shelly.co.il
/// http://AsyncOp.com
/// http://Asaf.Shelly.co.il
///
/// This code has been under development for over ten years and is still
/// updated occasionally.
/// It is recommended that you go online to find updates and fixed.
/// It is also recommended that you add a link in your code that is using
/// this or part of this source for future reference.
///
/// If you have any bug fixes, known bugs, updates, extensions, and other
/// comments feel free to post to the website or contact me directly.
//

// This header file is for handling relevant diferences between compilers and platforms.
// By Asaf Shelly
// 25/06/2002

 #ifndef __HEADER_FILE_WMD__COMPATIBILITY_H__
   #define __HEADER_FILE_WMD__COMPATIBILITY_H__


 #ifdef _MSC_VER
   #undef WIN32_LEAN_AND_MEAN
 #endif

   #ifndef __WMD_KERNEL__
      #include <Windows.h>
   #else // of !__WMD_KERNEL__
      #include <NTDDK.h>
   #endif // of __WMD_KERNEL__


 #if ((defined(DEBUG))&&(!(defined(_DEBUG))))
   #define _DEBUG
 #elif ((defined(_DEBUG))&&(!(defined(DEBUG))))
   #define DEBUG
 #endif
   
   
 #ifdef _MSC_VER
  
   #ifndef __import
      #define __import __declspec(dllimport)
   #endif
   
   #ifndef __export
      #define __export __declspec(dllexport)
   #endif
   
   #ifndef MAXINT
      #define MAXINT MAXINT_PTR
   #endif
   
   #if ((defined(_WIN32))||(defined(WIN32)))
      #define __WIN32__
      /*#ifndef (_WINDOWS)
#define _WINDOWS
#endif*/

   #endif
   
   #define __FUNC__ __FUNCTION__

   #ifdef _WINDLL
      #define __DLL__
   #endif
   
   #pragma warning( once : 4561 )
   
   //#if (defined(WINCEREL)||(defined(WINCEDEBUG))||(defined(UNDER_CE)))
   //#if (defined(_WIN32_WCE))
   // #define _WIN32_WCE (1)
   //#endif


// #define _threadid GetCurrentThreadId()
 
 #elif defined(__BORLANDC__)

   #define _argv __argv
   #define _argc __argc
   #define __FUNCTION__ __FUNC__
   
 #endif


   #ifdef SystemHPP // VCL

      #pragma comment(lib,"VCL50.lib")

   #endif // SystemHPP // VCL



   #ifdef __BCPLUSPLUS__

      #if (__BCPLUSPLUS__ >= 0x0550)

         #pragma comment(lib,"MemMgr.LIB")


      #endif // (__BCPLUSPLUS__ >= 0x0550)

   #endif // __BCPLUSPLUS__



  template <class tpltType>
 class SafeAlloc: public tpltType
  {
  };

 #define safe_new(TYPE) new SafeAlloc<TYPE>



 #ifndef TLS_OUT_OF_INDEXES
   #define TLS_OUT_OF_INDEXES (0xffffFFFF)
 #endif

 #ifndef MB_RIGHT
   #define MB_RIGHT 0x00080000L
 #endif
 
 #ifndef MB_RTLREADING
   #define MB_RTLREADING 0x00100000L
 #endif

 #ifndef JOYERR_BASE
   #define JOYERR_BASE 160
   #define JOYERR_NOERROR (0) /* no error */
   #define JOYERR_PARMS (JOYERR_BASE+5) /* bad parameters */
   #define JOYERR_NOCANDO (JOYERR_BASE+6) /* request not completed */
   #define JOYERR_UNPLUGGED (JOYERR_BASE+7) /* joystick is unplugged */
 #endif
 
 

 #endif // __HEADER_FILE_WMD__COMPATIBILITY_H__