checkbinary binutils "$(AR)"; \
checkbinary pkg-config "$(PKGCONFIG)"; \
[ "$(OS)" = "Win32" ] && checkbinary mingw32 "$(WINDRES)"; \
- [ "$(OS)" != "Win32" ] && checkbinary libc6 "$(LDD)"; \
+ [ -n "$(lDD)" ] && checkbinary libc6 "$(LDD)"; \
$(ECHO) All required tools have been found!
@$(ECHO)
@if [ x"$(DEPENDENCIES_CHECK)" = x"verbose" ]; then set -x; fi; \
libddslib.$(A): \
libs/ddslib/ddslib.o \
-$(INSTALLDIR)/q3data.$(EXE): LIBS_EXTRA := $(LIBS_XML) $(LIBS_GLIB)
-$(INSTALLDIR)/q3data.$(EXE): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) $(CPPFLAGS_GLIB) -Itools/quake3/common -Ilibs -Iinclude
+$(INSTALLDIR)/q3data.$(EXE): LIBS_EXTRA := $(LIBS_XML) $(LIBS_GLIB) $(LIBS_ZLIB)
+$(INSTALLDIR)/q3data.$(EXE): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) $(CPPFLAGS_GLIB) $(CPPFLAGS_ZLIB) -Itools/quake3/common -Ilibs -Iinclude
$(INSTALLDIR)/q3data.$(EXE): \
tools/quake3/common/aselib.o \
tools/quake3/common/bspfile.o \
void about_plugin_window();\r
void MapCoordinator();\r
\r
-#ifdef __linux__\r
+#ifndef _WIN32\r
// linux itoa implementation\r
char* itoa( int value, char* result, int base )\r
{ \r
{
size_t shaders_found = g_TextureBrowser.m_found_shaders.size();
- globalOutputStream() << "Found " << shaders_found << " textures and shaders with " << tags_searched << "\n";
+ globalOutputStream() << "Found " << (unsigned int)shaders_found << " textures and shaders with " << (unsigned int)tags_searched << "\n";
ScopeDisableScreenUpdates disableScreenUpdates("Searching...", "Loading Textures");
std::set<CopiedString>::iterator iter;
if(pthread_mutexattr_init(&mattrib) != 0)
Error("pthread_mutexattr_init failed");
-#if __GLIBC_MINOR__ == 1
- if (pthread_mutexattr_settype(&mattrib, PTHREAD_MUTEX_FAST_NP) != 0)
-#else
- if (pthread_mutexattr_settype(&mattrib, PTHREAD_MUTEX_ADAPTIVE_NP) != 0)
-#endif
+ if (pthread_mutexattr_settype(&mattrib, PTHREAD_MUTEX_ERRORCHECK) != 0)
Error ("pthread_mutexattr_settype failed");
recursive_mutex_init(mattrib);
=======================================================================
*/
-#ifdef __linux__
+#if defined(__linux__) || defined(__APPLE__)
#define USED
int numthreads = 4;
if(pthread_mutexattr_init(&mattrib) != 0)
Error("pthread_mutexattr_init failed");
-#if __GLIBC_MINOR__ == 1
- if (pthread_mutexattr_settype(&mattrib, PTHREAD_MUTEX_FAST_NP) != 0)
-#else
- if (pthread_mutexattr_settype(&mattrib, PTHREAD_MUTEX_ADAPTIVE_NP) != 0)
-#endif
+ if (pthread_mutexattr_settype(&mattrib, PTHREAD_MUTEX_ERRORCHECK) != 0)
Error ("pthread_mutexattr_settype failed");
recursive_mutex_init(mattrib);