Skip to content

Commit

Permalink
Make sure that it compiles on Windows again.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioAriasGa committed Apr 10, 2017
1 parent 7a067ab commit 686e25d
Show file tree
Hide file tree
Showing 8 changed files with 565 additions and 460 deletions.
4 changes: 2 additions & 2 deletions hdt-it/hdt-it.pro
Expand Up @@ -101,7 +101,7 @@ INCLUDEPATH += $${LIBCDS}/includes ../hdt-lib/include/ .
# Using Qt Projects
#win32:LIBS += ../hdt-lib/qmake/win32/libhdt.a $${LIBCDS}/qmake/win32/libcds.a

win32:LIBS += ../hdt-lib/qmake/win32/hdt.lib $${LIBCDS}/qmake/win32/cds.lib ../../zlib/bin/zlib.lib "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10586.0\um\x64\opengl32.lib" "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10586.0\um\x64\glu32.lib" "F:\serd-0.26.0\bin\serd.lib"
win32:LIBS += ../hdt-lib/qmake/win32/hdt.lib $${LIBCDS}/qmake/win32/cds.lib "F:\git\zlib\bin\zlib.lib" "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10586.0\um\x64\opengl32.lib" "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10586.0\um\x64\glu32.lib" "F:\serd-0.26.0\bin\serd.lib"

unix:!macx:LIBS += ../hdt-lib/qmake/unix/libhdt.a $${LIBCDS}/qmake/unix/libcds.a -lGLU
macx:LIBS += $${LIBCDS}/qmake/macx/libcds.a ../hdt-lib/qmake/macx/libhdt.a
Expand All @@ -120,7 +120,7 @@ win32-g++:contains(QMAKE_HOST.arch, x86_64):{
# win32:LIBS += -L"C:/MinGW/msys/1.0/local/lib/" -lraptor2 -lxml2 -lws2_32
}

win32:LIBS += -L"C:/msys/local/lib/" -L"/usr/local/lib" -L"C:/MinGW/msys/1.0/local/lib/" -lraptor2 -lxml2 -lws2_32 -lz
win32:LIBS += -L"C:/msys/local/lib/" -L"/usr/local/lib" -L"C:/MinGW/msys/1.0/local/lib/"

#Unix (Linux & Mac)
unix:LIBS += -L"/usr/local/lib" -lz -lserd-0
Expand Down
2 changes: 1 addition & 1 deletion hdt-it/hdtoperation.cpp
Expand Up @@ -11,7 +11,7 @@
#define USE_DIALOG
//#define OPERATION_CANCELABLE

#ifdef __WIN32__
#ifdef WIN32
#include <windows.h>
#define sleep(a) Sleep((a)*1000)
#else
Expand Down
3 changes: 3 additions & 0 deletions hdt-lib/src/dictionary/KyotoDictionary.cpp
Expand Up @@ -30,7 +30,10 @@
*/

#include <sstream>

#ifndef WIN32
#include <unistd.h>
#endif
#include <stdexcept>
#include "KyotoDictionary.hpp"

Expand Down
5 changes: 3 additions & 2 deletions hdt-lib/src/dictionary/PlainDictionary.hpp
Expand Up @@ -89,10 +89,11 @@ typedef sparse_hash_map<const char *, DictionaryEntry *, hash<const char *>, str
#else

#ifdef WIN32
typedef std::hash_map<const char *, DictionaryEntry *, hash<const char *>, str_cmp> DictEntryHash;
/*typedef std::hash_map<const char *, DictionaryEntry *, hash<const char *>, str_cmp> DictEntryHash;*/
typedef unordered_map<const char *, DictionaryEntry *, hash<const char *>, str_cmp> DictEntryHash;
#else
typedef std::hash_map<const char *, DictionaryEntry *, __gnu_cxx::hash<const char *>, str_cmp> DictEntryHash;
//typedef unordered_map<const char *, DictionaryEntry *, hash<const char *>, str_cmp> DictEntryHash;

#endif
#endif

Expand Down

2 comments on commit 686e25d

@RubenVerborgh
Copy link
Member

@RubenVerborgh RubenVerborgh commented on 686e25d May 31, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Breaks the build on everything else though: https://travis-ci.org/rdfhdt/hdt-cpp/builds/220724510

@RubenVerborgh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reset develop to the last working commit 7a067ab and pushed the broken branch to develop-broken.

Please sign in to comment.