summarylogtreecommitdiffstats
path: root/fix-compile.patch
blob: da810bd4e7f0c5132021a86f5683c1e480b73340 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
From ee7850f728f215f83e2794de666b2387a58b2286 Mon Sep 17 00:00:00 2001
From: romanra <romanra@posteo.net>
Date: Fri, 19 Aug 2022 19:38:57 +0200
Subject: [PATCH] Compilation fix

---
 src/Makefile               | 4 ++++
 src/libs/powzix/kraken.cpp | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/src/Makefile b/src/Makefile
index 1dbddab..756c44e 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -50,6 +50,10 @@ endif
 # - > brew install gcc
 # - > brew install openssl
 
+# For building on Linux
+EXTRA_TARGETS	= libs/amiga/amiga.s libs/powzix/*.cpp
+CFLAGS	+= -msse2
+
 all:
 	$(CC) $(SRC) $(CFLAGS) -o $(EXE) \
 	\
diff --git a/src/libs/powzix/kraken.cpp b/src/libs/powzix/kraken.cpp
index 772454c..be123ef 100644
--- a/src/libs/powzix/kraken.cpp
+++ b/src/libs/powzix/kraken.cpp
@@ -19,6 +19,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #include "stdafx.h"
 
+/*
  static unsigned int _rotl(  unsigned int value, int shift )
  {
      int max_bits = sizeof(value)<<3; 
@@ -26,6 +27,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
          shift = shift % max_bits;
      return (value << shift) | (value >> (max_bits-shift));
  }
+*/
 
 // Header in front of each 256k block
 typedef struct KrakenHeader {
-- 
2.37.2