⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cpl_port.h

📁 这是我已经编译好的GDAL1.4的所有文件
💻 H
📖 第 1 页 / 共 2 页
字号:
/****************************************************************************** * $Id: cpl_port.h,v 1.54 2006/11/16 14:36:11 mloskot Exp $ * * Project:  CPL - Common Portability Library * Author:   Frank Warmerdam, warmerdam@pobox.com * Purpose:  Include file providing low level portability services for CPL.   *           This should be the first include file for any CPL based code.   * ****************************************************************************** * Copyright (c) 1998, 2005, Frank Warmerdam <warmerdam@pobox.com> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * 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. ****************************************************************************** * * $Log: cpl_port.h,v $ * Revision 1.54  2006/11/16 14:36:11  mloskot * Disabled annoying warnings for Visual C++. * * Revision 1.53  2006/09/07 18:11:10  dron * Added CPLGetCurrentDir(). * * Revision 1.52  2006/04/19 01:59:18  fwarmerdam * move deprecate declarations before system include files * * Revision 1.51  2006/03/21 20:11:54  fwarmerdam * fixup headers a bit * * Revision 1.50  2006/03/13 20:58:32  mloskot * Test if macros _CRT_SECURE_NO_DEPRECATE and  _CRT_NONSTDC_NO_DEPRECATE * are already defined, to get rid of warnings * * Revision 1.49  2006/02/20 01:03:01  fwarmerdam * Fixed last change. * * Revision 1.48  2006/02/20 00:59:58  fwarmerdam * Avoid deprecation of some common functions with VS8. * http://bugzilla.remotesensing.org/show_bug.cgi?id=1083 * * Revision 1.47  2006/02/19 21:54:34  mloskot * [WINCE] Changes related to Windows CE port of CPL. Most changes are #ifdef wrappers. * * Revision 1.46  2005/12/08 20:21:10  fwarmerdam * added CPL_ODLL declaration * * Revision 1.45  2005/06/15 09:47:40  dron * Fixed typo. * * Revision 1.44  2005/06/15 09:11:58  dron * Added CPLIsEqual() macro. * * Revision 1.43  2005/05/23 03:57:08  fwarmerdam * added default definition of CPL_THREADLOCAL * * Revision 1.42  2005/04/04 15:22:36  fwarmerdam * added CPL_STDCALL declaration * * Revision 1.41  2005/03/17 04:20:24  fwarmerdam * added FORCE_CDECL * * Revision 1.40  2005/03/11 14:59:07  fwarmerdam * Default to assuming nothing is infinite if isinf() macro not defined. * Per http://bugzilla.remotesensing.org/show_bug.cgi?id=795 * * Revision 1.39  2005/03/01 21:22:07  fwarmerdam * added CPLIsFinite() * * Revision 1.38  2005/03/01 20:44:38  fwarmerdam * Check for _MSC_VER instead of WIN32. * * Revision 1.37  2005/03/01 19:57:55  fwarmerdam * Added CPLIsNan and CPLIsInf macros. */#ifndef CPL_BASE_H_INCLUDED#define CPL_BASE_H_INCLUDED/* Remove annoying warnings Microsoft Visual C++ */#if defined(_MSC_VER)#  pragma warning(disable:4251 4275 4786)#endif/** * \file cpl_port.h * * Core portability definitions for CPL. * *//* ==================================================================== *//*      We will use macos_pre10 to indicate compilation with MacOS      *//*      versions before MacOS X.                                        *//* ==================================================================== */#ifdef macintosh#  define macos_pre10#endif/* ==================================================================== *//*      We will use WIN32 as a standard windows define.                 *//* ==================================================================== */#if defined(_WIN32) && !defined(WIN32) && !defined(_WIN32_WCE)#  define WIN32#endif#if defined(_WINDOWS) && !defined(WIN32) && !defined(_WIN32_WCE)#  define WIN32#endif/* ==================================================================== *//*      We will use WIN32CE as a standard Windows CE (Mobile) define.   *//* ==================================================================== */#if defined(_WIN32_WCE)#  define WIN32CE#endif/* -------------------------------------------------------------------- *//*      The following apparently allow you to use strcpy() and other    *//*      functions judged "unsafe" by microsoft in VS 8 (2005).          *//* -------------------------------------------------------------------- */#ifdef _MSC_VER#  ifndef _CRT_SECURE_NO_DEPRECATE#    define _CRT_SECURE_NO_DEPRECATE#  endif#  ifndef _CRT_NONSTDC_NO_DEPRECATE#    define _CRT_NONSTDC_NO_DEPRECATE#  endif#endif#include "cpl_config.h"/* ==================================================================== *//*      This will disable most WIN32 stuff in a Cygnus build which      *//*      defines unix to 1.                                              *//* ==================================================================== */#ifdef unix#  undef WIN32#  undef WIN32CE#endif#if defined(VSI_NEED_LARGEFILE64_SOURCE) && !defined(_LARGEFILE64_SOURCE)#  define _LARGEFILE64_SOURCE 1#endif/* ==================================================================== *//*      Standard include files.                                         *//* ==================================================================== */#include <stdio.h>#include <stdlib.h>#include <math.h>#include <stdarg.h>#include <string.h>#include <ctype.h>#if !defined(WIN32CE)#  include <time.h>#else#  include <wce_time.h>#  include <wce_errno.h>#endif#if defined(HAVE_ERRNO_H)#  include <errno.h>#endif #ifdef HAVE_LOCALE_H#  include <locale.h>#endif#ifdef HAVE_DIRECT_H#  include <direct.h>#endif#ifdef _AIX#  include <strings.h>#endif#if defined(HAVE_LIBDBMALLOC) && defined(HAVE_DBMALLOC_H) && defined(DEBUG)#  define DBMALLOC#  include <dbmalloc.h>#endif#if !defined(DBMALLOC) && defined(HAVE_DMALLOC_H)#  define USE_DMALLOC#  include <dmalloc.h>#endif/* ==================================================================== *//*      Base portability stuff ... this stuff may need to be            *//*      modified for new platforms.                                     *//* ==================================================================== *//*--------------------------------------------------------------------- *        types for 16 and 32 bits integers, etc... *--------------------------------------------------------------------*/#if UINT_MAX == 65535typedef long            GInt32;typedef unsigned long   GUInt32;#elsetypedef int             GInt32;typedef unsigned int    GUInt32;#endiftypedef short           GInt16;typedef unsigned short  GUInt16;typedef unsigned char   GByte;typedef int             GBool;/* -------------------------------------------------------------------- *//*      64bit support                                                   *//* -------------------------------------------------------------------- */#if defined(WIN32) && defined(_MSC_VER)#define VSI_LARGE_API_SUPPORTEDtypedef __int64          GIntBig;typedef unsigned __int64 GUIntBig;#elif HAVE_LONG_LONGtypedef long long        GIntBig;typedef unsigned long long GUIntBig;#elsetypedef long             GIntBig;typedef unsigned long    GUIntBig;#endif/* ==================================================================== */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -