gd_errors.h 673 B

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