Back to index

php5  5.3.10
php_syslog.h
Go to the documentation of this file.
00001 /*
00002   +----------------------------------------------------------------------+
00003   | PHP Version 5                                                        |
00004   +----------------------------------------------------------------------+
00005   | Copyright (c) 1997-2012 The PHP Group                                |
00006   +----------------------------------------------------------------------+
00007   | This source file is subject to version 3.01 of the PHP license,      |
00008   | that is bundled with this package in the file LICENSE, and is        |
00009   | available through the world-wide-web at the following url:           |
00010   | http://www.php.net/license/3_01.txt                                  |
00011   | If you did not receive a copy of the PHP license and are unable to   |
00012   | obtain it through the world-wide-web, please send a note to          |
00013   | license@php.net so we can mail you a copy immediately.               |
00014   +----------------------------------------------------------------------+
00015   | Author:                                                              |
00016   +----------------------------------------------------------------------+
00017 */
00018 
00019 /* $Id: php_syslog.h 321634 2012-01-01 13:15:04Z felipe $ */
00020 
00021 #ifndef PHP_SYSLOG_H
00022 #define PHP_SYSLOG_H
00023 
00024 #ifdef PHP_WIN32
00025 #include "win32/syslog.h"
00026 #else
00027 #include <php_config.h>
00028 #ifdef HAVE_SYSLOG_H
00029 #include <syslog.h>
00030 #endif
00031 #endif
00032 
00033 /* 
00034  * The SCO OpenServer 5 Development System (not the UDK)
00035  * defines syslog to std_syslog.
00036  */
00037 
00038 #ifdef syslog
00039 
00040 #ifdef HAVE_STD_SYSLOG
00041 #define php_syslog std_syslog
00042 #endif
00043 
00044 #undef syslog
00045 
00046 #endif
00047 
00048 #ifndef php_syslog
00049 #define php_syslog syslog
00050 #endif
00051 
00052 #endif