00001 /* ///////////////////////////////////////////////////////////////////////// 00002 * File: stlsoft/internal/safestr.h 00003 * 00004 * Purpose: Handles detection of safe string library. 00005 * 00006 * Created: 24th March 2008 00007 * Updated: 10th August 2009 00008 * 00009 * Author: Matthew Wilson 00010 * 00011 * Home: http://www.stlsoft.org/ 00012 * 00013 * Copyright (c) 2008-2009, Matthew Wilson and Synesis Software 00014 * All rights reserved. 00015 * 00016 * Redistribution and use in source and binary forms, with or without 00017 * modification, are permitted provided that the following conditions are 00018 * met: 00019 * 00020 * - Redistributions of source code must retain the above copyright notice, 00021 * this list of conditions and the following disclaimer. 00022 * - Redistributions in binary form must reproduce the above copyright 00023 * notice, this list of conditions and the following disclaimer in the 00024 * documentation and/or other materials provided with the distribution. 00025 * - Neither the name(s) of Matthew Wilson and Synesis Software nor the 00026 * names of any contributors may be used to endorse or promote products 00027 * derived from this software without specific prior written permission. 00028 * 00029 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 00030 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 00031 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00032 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 00033 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00034 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00035 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 00036 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 00037 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 00038 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00039 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00040 * 00041 * ////////////////////////////////////////////////////////////////////// */ 00042 00043 00049 #ifndef STLSOFT_INCL_STLSOFT_INTERNAL_H_SAFESTR 00050 #define STLSOFT_INCL_STLSOFT_INTERNAL_H_SAFESTR 00051 00052 #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION 00053 # define STLSOFT_VER_H_STLSOFT_INTERNAL_H_SAFESTR_MAJOR 1 00054 # define STLSOFT_VER_H_STLSOFT_INTERNAL_H_SAFESTR_MINOR 1 00055 # define STLSOFT_VER_H_STLSOFT_INTERNAL_H_SAFESTR_REVISION 1 00056 # define STLSOFT_VER_H_STLSOFT_INTERNAL_H_SAFESTR_EDIT 4 00057 #endif /* !STLSOFT_DOCUMENTATION_SKIP_SECTION */ 00058 00059 /* ///////////////////////////////////////////////////////////////////////// 00060 * Includes 00061 */ 00062 00063 #ifndef STLSOFT_INCL_STLSOFT_H_STLSOFT 00064 # include <stlsoft/stlsoft.h> 00065 #endif /* !STLSOFT_INCL_STLSOFT_H_STLSOFT */ 00066 00067 #if ( defined(STLSOFT_COMPILER_IS_MSVC) || \ 00068 ( defined(STLSOFT_COMPILER_IS_INTEL) && \ 00069 defined(_MSC_VER))) && \ 00070 _MSC_VER >= 1400 00071 # include <crtdefs.h> 00072 #endif /* compiler */ 00073 00074 /* ///////////////////////////////////////////////////////////////////////// 00075 * Symbols 00076 */ 00077 00078 #ifdef __STDC_SECURE_LIB__ 00079 # if defined(__STDC_WANT_SECURE_LIB__) && \ 00080 __STDC_WANT_SECURE_LIB__ == 1 00081 # define STLSOFT_USING_SAFE_STR_FUNCTIONS 00082 # endif /* __STDC_WANT_SECURE_LIB__ */ 00083 #endif /* __STDC_SECURE_LIB__ */ 00084 00085 /* ////////////////////////////////////////////////////////////////////// */ 00086 00087 #endif /* STLSOFT_INCL_STLSOFT_INTERNAL_H_SAFESTR */ 00088 00089 /* ///////////////////////////// end of file //////////////////////////// */