diff --git a/Makefile b/Makefile index 74fcee0..e90eea6 100644 --- a/Makefile +++ b/Makefile @@ -92,7 +92,7 @@ else CFLAGS += -DSLUNKBUILD_NOTHREADS endif -ifneq (,$(firstword $(filter %-unknown-haiku,$(MACHINE)))) +ifneq (,$(firstword $(filter %-pc-haiku %-unknown-haiku,$(MACHINE)))) LDFLGS += -lbsd endif diff --git a/frontend/res/version.rc b/frontend/res/version.rc index df2ecc7..953c43e 100644 --- a/frontend/res/version.rc +++ b/frontend/res/version.rc @@ -8,9 +8,9 @@ #include "../../libslunkcrypt/src/version.h" -#define VERSION_HELPER1(X,Y,Z) #X "." #Y "." #Z -#define VERSION_HELPER2(X,Y,Z) VERSION_HELPER1(X,Y,Z) -#define VERSION_STRING VERSION_HELPER2(LIB_VERSION_MAJOR,LIB_VERSION_MINOR,LIB_VERSION_PATCH) +#define _VERSION_STRING_HELPER1(W,X,Y,Z) #W "." #X "." #Y "." #Z +#define _VERSION_STRING_HELPER2(W,X,Y,Z) _VERSION_STRING_HELPER1(W,X,Y,Z) +#define VERSION_STRING _VERSION_STRING_HELPER2(LIB_VERSION_MAJOR,LIB_VERSION_MINOR,0,LIB_VERSION_PATCH) ///////////////////////////////////////////////////////////////////////////// //