xref: /PHP-7.3/ext/gd/libgd/gd_errors.h (revision fa451241)
1 #ifndef GD_ERRORS_H
2 #define GD_ERRORS_H
3 
4 #ifndef _WIN32
5 # include <syslog.h>
6 #else
7 # include "win32/syslog.h"
8 #endif
9 
10 /*
11 LOG_EMERG      system is unusable
12 LOG_ALERT      action must be taken immediately
13 LOG_CRIT       critical conditions
14 LOG_ERR        error conditions
15 LOG_WARNING    warning conditions
16 LOG_NOTICE     normal, but significant, condition
17 LOG_INFO       informational message
18 LOG_DEBUG      debug-level message
19 */
20 
21 #define GD_ERROR LOG_ERR
22 #define GD_WARNING LOG_WARNING
23 #define GD_NOTICE LOG_NOTICE
24 #define GD_INFO LOG_INFO
25 #define GD_DEBUG LOG_DEBUG
26 
27 void gd_error(const char *format, ...);
28 void gd_error_ex(int priority, const char *format, ...);
29 
30 #endif
31