Back to index

php5  5.3.10
mbfl_defs.h
Go to the documentation of this file.
00001 /*
00002  * "streamable kanji code filter and converter"
00003  * Copyright (c) 1998-2002 HappySize, Inc. All rights reserved.
00004  *
00005  * LICENSE NOTICES
00006  *
00007  * This file is part of "streamable kanji code filter and converter",
00008  * which is distributed under the terms of GNU Lesser General Public 
00009  * License (version 2) as published by the Free Software Foundation.
00010  *
00011  * This software is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with "streamable kanji code filter and converter";
00018  * if not, write to the Free Software Foundation, Inc., 59 Temple Place,
00019  * Suite 330, Boston, MA  02111-1307  USA
00020  *
00021  * The author of this file:
00022  *
00023  */
00024 /*
00025  * The source code included in this files was separated from mbfilter.h
00026  * by Moriyoshi Koizumi <moriyoshi@php.net> on 20 Dec 2002. The file
00027  * mbfilter.h is included in this package .
00028  *
00029  */
00030 
00031 #ifndef MBFL_DEFS_H
00032 #define MBFL_DEFS_H
00033 
00034 #ifndef NULL
00035 #ifdef __cplusplus
00036 #define NULL (0L)
00037 #else
00038 #define NULL (void *)(0L)
00039 #endif
00040 #endif 
00041 
00042 #ifdef WIN32
00043 #ifdef MBFL_DLL_EXPORT
00044 #define MBFLAPI __declspec(dllexport)
00045 #else
00046 #define MBFLAPI __declspec(dllimport)
00047 #endif /* MBFL_DLL_EXPORT */
00048 #else
00049 #if defined(__GNUC__) && __GNUC__ >= 4
00050 #define MBFLAPI __attribute__((visibility("default")))
00051 #else
00052 #define MBFLAPI
00053 #endif /* defined(__GNUC__) && __GNUC__ >= 4 */
00054 #endif /* WIN32 */
00055 
00056 #endif /* MBFL_DEFS_H */