Warning, /frameworks/kjs/src/kjs/global.h.cmake is written in an unsupported language. File is not indexed.
0001 // -*- c-basic-offset: 2 -*- 0002 /* 0003 * This file is part of the KDE libraries 0004 * Copyright (C) 2002 David Faure (faure@kde.org) 0005 * 0006 * This library is free software; you can redistribute it and/or 0007 * modify it under the terms of the GNU Lesser General Public 0008 * License as published by the Free Software Foundation; either 0009 * version 2 of the License, or (at your option) any later version. 0010 * 0011 * This library is distributed in the hope that it will be useful, 0012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0014 * Lesser General Public License for more details. 0015 * 0016 * You should have received a copy of the GNU Lesser General Public License 0017 * along with this library; see the file COPYING.LIB. If not, write to 0018 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0019 * Boston, MA 02110-1301, USA. 0020 * 0021 */ 0022 0023 #ifndef KJS_GLOBAL_H 0024 #define KJS_GLOBAL_H 0025 0026 #include <wtf/Platform.h> 0027 0028 // we don't want any padding between UChars (ARM processor) 0029 #if defined(__GNUC__) || defined(__INTEL_COMPILER) 0030 #define KJS_PACKED __attribute__((__packed__)) 0031 #else 0032 #define KJS_PACKED 0033 #endif 0034 0035 #if defined(_MSC_VER) 0036 #pragma warning(disable: 4355) 0037 #endif 0038 0039 #cmakedefine __KDE_HAVE_GCC_VISIBILITY 0040 0041 #ifndef KJS_EXPORT 0042 # ifdef __KDE_HAVE_GCC_VISIBILITY 0043 # define KJS_EXPORT __attribute__ ((visibility("default"))) 0044 # elif defined(_WIN32) || defined(_WIN64) 0045 # ifdef MAKE_KJS_LIB 0046 # define KJS_EXPORT __declspec(dllexport) 0047 # else 0048 # define KJS_EXPORT __declspec(dllimport) 0049 # endif 0050 # else 0051 # define KJS_EXPORT 0052 # endif 0053 #endif 0054 0055 // some methods are declared inside kjs and defined outside (currently only in khtml) 0056 // KJS_EXTERNAL_EXPORT should be prefixed to each related method 0057 #ifndef KJS_EXTERNAL_EXPORT 0058 # if defined(MAKE_KJS_LIB) 0059 # define KJS_EXTERNAL_EXPORT 0060 # elif (defined(_WIN32) || defined(_WIN64)) && defined(__GNUC__) 0061 # if defined(MAKE_KHTML_LIB) || defined(MAKE_KJSEMBED_LIB) || defined(MAKE_KATEPART_LIB) 0062 # define KJS_EXTERNAL_EXPORT __declspec(dllexport) 0063 # else 0064 # define KJS_EXTERNAL_EXPORT 0065 # endif 0066 # else 0067 # define KJS_EXTERNAL_EXPORT 0068 # endif 0069 #endif 0070 0071 #ifndef NDEBUG // protection against problems if committing with KJS_VERBOSE on 0072 0073 // Uncomment this to enable very verbose output from KJS 0074 //#define KJS_VERBOSE 0075 // Uncomment this to debug memory allocation and garbage collection 0076 //#define KJS_DEBUG_MEM 0077 0078 #endif 0079 0080 // Apple feature which we don't use 0081 #define KJS_MULTIPLE_THREADS 0 0082 // Debugging features, turned off by default 0083 #define DEBUG_COLLECTOR 0 0084 0085 /* Valgrind memcheck presence */ 0086 #cmakedefine01 HAVE_VALGRIND_MEMCHECK_H 0087 0088 #cmakedefine01 HAVE_ERRNO_H 0089 #cmakedefine01 HAVE_SYS_PARAM_H 0090 0091 /* Defined to 1 if you have a tm_gmtoff member in struct tm */ 0092 #cmakedefine01 HAVE_TM_GMTOFF 0093 #cmakedefine01 HAVE_STDINT_H 0094 #cmakedefine01 HAVE_SYS_TIMEB_H 0095 #cmakedefine01 HAVE_SYS_TIME_H 0096 #cmakedefine01 HAVE_UNISTD_H 0097 #cmakedefine01 HAVE_GETTIMEOFDAY 0098 0099 #cmakedefine01 HAVE_FLOAT_H 0100 #cmakedefine01 HAVE_IEEEFP_H 0101 0102 #cmakedefine01 HAVE_FUNC_FINITE 0103 #cmakedefine01 HAVE_FUNC__FINITE 0104 #cmakedefine01 HAVE_FUNC_STD_ISFINITE 0105 0106 #cmakedefine01 HAVE_FUNC_ISINF 0107 #cmakedefine01 HAVE_FUNC_STD_ISINF 0108 #cmakedefine01 HAVE_FUNC_ISNAN 0109 #cmakedefine01 HAVE_FUNC_STD_ISNAN 0110 0111 #cmakedefine01 HAVE_FUNC_COPYSIGN 0112 #cmakedefine01 HAVE_FUNC__COPYSIGN 0113 #cmakedefine01 HAVE_FUNC_SIGNBIT 0114 #cmakedefine01 HAVE_FUNC___SIGNBIT 0115 #cmakedefine01 HAVE_FUNC_STD_SIGNBIT 0116 0117 #cmakedefine01 HAVE_FUNC_BUILTIN_CLZ 0118 0119 #cmakedefine01 HAVE_FUNC__FPCLASS 0120 0121 #cmakedefine01 HAVE_PTHREAD_NP_H 0122 #cmakedefine01 HAVE_FUNC_POSIX_MEMALIGN 0123 #cmakedefine01 HAVE_PCREPOSIX 0124 /* Define to 1 if you have strings.h */ 0125 #cmakedefine01 HAVE_STRINGS_H 0126 #cmakedefine01 HAVE_PTHREAD_ATTR_GET_NP 0127 #cmakedefine01 HAVE_PTHREAD_GETATTR_NP 0128 #cmakedefine01 HAVE_MEMCHECK_H 0129 #cmakedefine01 HAVE_CRTDBG_H 0130 0131 #endif