ithewei 6 gadi atpakaļ
vecāks
revīzija
817b9b9abb
3 mainītis faili ar 5 papildinājumiem un 4 dzēšanām
  1. 3 2
      Makefile.in
  2. 1 1
      base/hlog.c
  3. 1 1
      base/hmutex.h

+ 3 - 2
Makefile.in

@@ -87,8 +87,8 @@ DISTDIR = dist
 DOCDIR  = doc
 DOCDIR  = doc
 
 
 SRCDIRS += $(shell find $(SRCDIR) -type d)
 SRCDIRS += $(shell find $(SRCDIR) -type d)
-INCDIRS += $(INCDIR) $(DEPDIR) $(DEPDIR)/include $(SRCDIRS)
-LIBDIRS += $(LIBDIR) $(DEPDIR)/lib $(DEPDIR)/lib/$(TARGET_PLATFORM)
+override INCDIRS += $(INCDIR) $(DEPDIR) $(DEPDIR)/include
+override LIBDIRS += $(LIBDIR) $(DEPDIR)/lib $(DEPDIR)/lib/$(TARGET_PLATFORM)
 
 
 # CPPFLAGS
 # CPPFLAGS
 ifeq ($(OS), Windows)
 ifeq ($(OS), Windows)
@@ -102,6 +102,7 @@ ifeq ($(BUILD_TYPE), DEBUG)
 endif
 endif
 CPPFLAGS += $(addprefix -D, $(DEFINES))
 CPPFLAGS += $(addprefix -D, $(DEFINES))
 CPPFLAGS += $(addprefix -I, $(INCDIRS))
 CPPFLAGS += $(addprefix -I, $(INCDIRS))
+CPPFLAGS += $(addprefix -I, $(SRCDIRS))
 
 
 # LDFLAGS
 # LDFLAGS
 ifeq ($(OS), Windows)
 ifeq ($(OS), Windows)

+ 1 - 1
base/hlog.c

@@ -17,7 +17,7 @@ static char     s_logbuf[LOG_BUFSIZE];
 
 
 // for thread-safe
 // for thread-safe
 #include "hmutex.h"
 #include "hmutex.h"
-#ifdef _MSC_VER
+#ifdef OS_WIN
 static hmutex_t  s_mutex;
 static hmutex_t  s_mutex;
 static honce_t   s_once = HONCE_INIT;
 static honce_t   s_once = HONCE_INIT;
 static void WINAPI __mutex_init() {
 static void WINAPI __mutex_init() {

+ 1 - 1
base/hmutex.h

@@ -3,7 +3,7 @@
 
 
 #include "hplatform.h"
 #include "hplatform.h"
 
 
-#ifdef _WIN32
+#ifdef OS_WIN
 #define hmutex_t            CRITICAL_SECTION
 #define hmutex_t            CRITICAL_SECTION
 #define hmutex_init         InitializeCriticalSection
 #define hmutex_init         InitializeCriticalSection
 #define hmutex_destroy      DeleteCriticalSection
 #define hmutex_destroy      DeleteCriticalSection