Skip to content
Snippets Groups Projects
Commit 7c42d83c authored by rswindell's avatar rswindell
Browse files

Now #includes <syslog.h> on UNIX or #defines the log levels/priorities on Win32

for use with new lputs() API.
Removed redundant crc32-related definitions.
parent 0c9c5891
No related branches found
No related tags found
No related merge requests found
......@@ -806,6 +806,21 @@ enum { /* Values of mode for userlist function */
#define BO_OPENFILE 0 /* Backout types */
#if defined(__unix__)
#include <syslog.h>
#else
/*
* log priorities (copied from BSD syslog.h)
*/
#define LOG_EMERG 0 /* system is unusable */
#define LOG_ALERT 1 /* action must be taken immediately */
#define LOG_CRIT 2 /* critical conditions */
#define LOG_ERR 3 /* error conditions */
#define LOG_WARNING 4 /* warning conditions */
#define LOG_NOTICE 5 /* normal but significant condition */
#define LOG_INFO 6 /* informational */
#define LOG_DEBUG 7 /* debug-level messages */
#endif
/**********/
/* Macros */
......@@ -842,16 +857,6 @@ enum { /* Values of mode for userlist function */
#define mswait(x) SLEEP(x)
#define sbbs_random(x) xp_random(x)
#ifdef __cplusplus
extern "C" {
#endif
extern long crc32tbl[];
#ifdef __cplusplus
}
#endif
#define ucrc32(ch,crc) (crc32tbl[(crc^ch)&0xff]^(crc>>8))
/**************************************/
/* Text Attribute (color) Definitions */
/**************************************/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment