_tbb_windef.h Source File

- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- File List
- File Members

# _tbb_windef.h

    00001 /*
    00002     Copyright 2005-2010 Intel Corporation.  All Rights Reserved.
    00003
    00004     The source code contained or described herein and all documents related
    00005     to the source code ("Material") are owned by Intel Corporation or its
    00006     suppliers or licensors.  Title to the Material remains with Intel
    00007     Corporation or its suppliers and licensors.  The Material is protected
    00008     by worldwide copyright laws and treaty provisions.  No part of the
    00009     Material may be used, copied, reproduced, modified, published, uploaded,
    00010     posted, transmitted, distributed, or disclosed in any way without
    00011     Intel's prior express written permission.
    00012
    00013     No license under any patent, copyright, trade secret or other
    00014     intellectual property right is granted to or conferred upon you by
    00015     disclosure or delivery of the Materials, either expressly, by
    00016     implication, inducement, estoppel or otherwise.  Any license under such
    00017     intellectual property rights must be express and approved by Intel in
    00018     writing.
    00019 */
    00020
    00021 #ifndef __TBB_tbb_windef_H
    00022 #error Do not #include this file directly.  Use "#include tbb/tbb_stddef.h" instead.
    00023 #endif /* __TBB_tbb_windef_H */
    00024
    00025 // Check that the target Windows version has all API calls requried for TBB.
    00026 // Do not increase the version in condition beyond 0x0500 without prior discussion!
    00027 #if defined(_WIN32_WINNT) && _WIN32_WINNT<0x0400
    00028 #error TBB is unable to run on old Windows versions; _WIN32_WINNT must be 0x0400 or greater.
    00029 #endif
    00030
    00031 #if !defined(_MT)
    00032 #error TBB requires linkage with multithreaded C/C++ runtime library. \
    00033        Choose multithreaded DLL runtime in project settings, or use /MD[d] compiler switch.
    00034 #endif
    00035
    00036 // Workaround for the problem with MVSC headers failing to define namespace std
    00037 namespace std {
    00038   using ::size_t; using ::ptrdiff_t;
    00039 }
    00040
    00041 #define __TBB_STRING_AUX(x) #x
    00042 #define __TBB_STRING(x) __TBB_STRING_AUX(x)
    00043
    00044 // Default setting of TBB_USE_DEBUG
    00045 #ifdef TBB_USE_DEBUG
    00046 #    if TBB_USE_DEBUG
    00047 #        if !defined(_DEBUG)
    00048 #            pragma message(__FILE__ "(" __TBB_STRING(__LINE__) ") : Warning: Recommend using /MDd if compiling with TBB_USE_DEBUG!=0")
    00049 #        endif
    00050 #    else
    00051 #        if defined(_DEBUG)
    00052 #            pragma message(__FILE__ "(" __TBB_STRING(__LINE__) ") : Warning: Recommend using /MD if compiling with TBB_USE_DEBUG==0")
    00053 #        endif
    00054 #    endif
    00055 #else
    00056 #    ifdef _DEBUG
    00057 #        define TBB_USE_DEBUG 1
    00058 #    endif
    00059 #endif
    00060
    00061 #if __TBB_BUILD && !defined(__TBB_NO_IMPLICIT_LINKAGE)
    00062 #define __TBB_NO_IMPLICIT_LINKAGE 1
    00063 #endif
    00064
    00065 #if _MSC_VER
    00066     #if !__TBB_NO_IMPLICIT_LINKAGE
    00067         #ifdef _DEBUG
    00068             #pragma comment(lib, "tbb_debug.lib")
    00069         #else
    00070             #pragma comment(lib, "tbb.lib")
    00071         #endif
    00072     #endif
    00073 #endif

Copyright © 2005-2010 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.