webengine/osswebengine/WebCore/config.h
changeset 0 dd21522fd290
child 16 a359256acfc6
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2  * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc.
       
     3  *
       
     4  * This library is free software; you can redistribute it and/or
       
     5  * modify it under the terms of the GNU Library General Public
       
     6  * License as published by the Free Software Foundation; either
       
     7  * version 2 of the License, or (at your option) any later version.
       
     8  *
       
     9  * This library is distributed in the hope that it will be useful,
       
    10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    12  * Library General Public License for more details.
       
    13  *
       
    14  * You should have received a copy of the GNU Library General Public License
       
    15  * along with this library; see the file COPYING.LIB.  If not, write to
       
    16  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
       
    17  * Boston, MA 02110-1301, USA.
       
    18  *
       
    19  */
       
    20 
       
    21 #include <wtf/Platform.h>
       
    22 
       
    23 #define MOBILE 0
       
    24 
       
    25 #if __APPLE__
       
    26 #define HAVE_FUNC_USLEEP 1
       
    27 #endif /* __APPLE__ */
       
    28 
       
    29 
       
    30 #if PLATFORM(WIN_OS)
       
    31 
       
    32 #ifndef _WIN32_WINNT
       
    33 #define _WIN32_WINNT 0x0500
       
    34 #endif
       
    35 
       
    36 #ifndef WINVER
       
    37 #define WINVER 0x0500
       
    38 #endif
       
    39 
       
    40 // If we don't define these, they get defined in windef.h. 
       
    41 // We want to use std::min and std::max
       
    42 #ifndef max
       
    43 #define max max
       
    44 #endif
       
    45 #ifndef min
       
    46 #define min min
       
    47 #endif
       
    48 
       
    49 #ifndef _WINSOCKAPI_
       
    50 #define _WINSOCKAPI_ // Prevent inclusion of winsock.h in windows.h
       
    51 #endif
       
    52 
       
    53 #endif /* PLATFORM(WIN_OS) */
       
    54 
       
    55 #if PLATFORM(SYMBIAN)
       
    56 #define PRELOAD_SCANNER_ENABLED 1
       
    57 #define EXPORT EXPORT_C
       
    58 #define IMPORT IMPORT_C
       
    59 #else
       
    60 #define IMPORT
       
    61 #define EXPORT
       
    62 #endif
       
    63 
       
    64 #ifdef __cplusplus
       
    65 
       
    66 // These undefs match up with defines in WebCorePrefix.h for Mac OS X.
       
    67 // Helps us catch if anyone uses new or delete by accident in code and doesn't include "config.h".
       
    68 #undef new
       
    69 #undef delete
       
    70 #include <wtf/FastMalloc.h>
       
    71 
       
    72 #endif
       
    73 
       
    74 #if !COMPILER(MSVC) // can't get this to compile on Visual C++ yet
       
    75 #define AVOID_STATIC_CONSTRUCTORS 1
       
    76 #endif
       
    77 
       
    78 #if PLATFORM(WIN)
       
    79 #define WTF_USE_JAVASCRIPTCORE_BINDINGS 1
       
    80 #define WTF_USE_NPOBJECT 1
       
    81 #define WTF_PLATFORM_CG 1
       
    82 #undef WTF_PLATFORM_CAIRO
       
    83 #define WTF_USE_CFNETWORK 1
       
    84 #undef WTF_USE_WININET
       
    85 #define WTF_PLATFORM_CF 1
       
    86 #endif
       
    87 
       
    88 #if PLATFORM(MAC)
       
    89 #define WTF_USE_JAVASCRIPTCORE_BINDINGS 1
       
    90 #ifdef __LP64__
       
    91 #define WTF_USE_NPOBJECT 0
       
    92 #else
       
    93 #define WTF_USE_NPOBJECT 1
       
    94 #endif
       
    95 #endif
       
    96 
       
    97 #if PLATFORM(SYMBIAN)
       
    98 #define WTF_USE_LOW_BANDWIDTH_DISPLAY 0
       
    99 #define WTF_USE_JAVASCRIPTCORE_BINDINGS 1
       
   100 #define WTF_USE_NPOBJECT 1
       
   101 #undef WIN32
       
   102 #undef _WIN32
       
   103 #undef AVOID_STATIC_CONSTRUCTORS
       
   104 #define USE_SYSTEM_MALLOC 1
       
   105 #define U_HAVE_INT8_T 0
       
   106 #define U_HAVE_INT16_T 0
       
   107 #define U_HAVE_INT32_T 0
       
   108 #define U_HAVE_INT64_T 0
       
   109 #define U_HAVE_INTTYPES_H 0
       
   110 #define ENABLE_ICONDATABASE 1
       
   111 #undef ENABLE_FTPDIR
       
   112 #define ENABLE_FTPDIR 0
       
   113 
       
   114 #include <stdio.h>
       
   115 #include <snprintf.h>
       
   116 #include <limits.h>
       
   117 #include <string.h>
       
   118 #include <wtf/MathExtras.h>
       
   119 #endif
       
   120 
       
   121 #if !PLATFORM(SYMBIAN)
       
   122 #define IMPORT
       
   123 #define EXPORT
       
   124 #endif
       
   125 
       
   126 #if PLATFORM(CG)
       
   127 #ifndef CGFLOAT_DEFINED
       
   128 #ifdef __LP64__
       
   129 typedef double CGFloat;
       
   130 #else
       
   131 typedef float CGFloat;
       
   132 #endif
       
   133 #define CGFLOAT_DEFINED 1
       
   134 #endif
       
   135 #endif /* PLATFORM(CG) */
       
   136 
       
   137 #ifdef BUILDING_ON_TIGER
       
   138 #undef ENABLE_FTPDIR
       
   139 #define ENABLE_FTPDIR 0
       
   140 #endif