summaryrefslogtreecommitdiffhomepage
path: root/src/lingot-msg.c
diff options
context:
space:
mode:
authorPiotr Pawlow <pp@siedziba.pl>2016-02-22 17:33:05 +0100
committerPiotr Pawlow <pp@siedziba.pl>2016-02-22 17:33:05 +0100
commitbdbb7924565997bfe389def2dcca376ecae0a1a9 (patch)
treed125ba24a18ab20bc72441821ab0e8dd89e1f5ee /src/lingot-msg.c
parent89320dcd1dec0c38c86a1bb132b20904f5fc2a13 (diff)
Add LM_ prefix to message_type_t enum values.
Fixes compile error on Windows because wingdi.h contains "#define ERROR 0".
Diffstat (limited to 'src/lingot-msg.c')
-rw-r--r--src/lingot-msg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lingot-msg.c b/src/lingot-msg.c
index 8cd8864..9e738d8 100644
--- a/src/lingot-msg.c
+++ b/src/lingot-msg.c
@@ -36,15 +36,15 @@ int front = 0, rear = 0;
pthread_mutex_t message_queue_mutex = PTHREAD_MUTEX_INITIALIZER;
void lingot_msg_add_error(const char* msg) {
- lingot_msg_add(msg, ERROR);
+ lingot_msg_add(msg, LM_ERROR);
}
void lingot_msg_add_warning(const char* msg) {
- lingot_msg_add(msg, WARNING);
+ lingot_msg_add(msg, LM_WARNING);
}
void lingot_msg_add_info(const char* msg) {
- lingot_msg_add(msg, INFO);
+ lingot_msg_add(msg, LM_INFO);
}
void lingot_msg_add(const char* msg, message_type_t type) {