fixed that lcorernd would not compile if nolcorernd is defined, but should
authorbeware <beware@bircd.org>
Sat, 8 Jan 2022 21:57:19 +0000 (21:57 +0000)
committerbeware <beware@bircd.org>
Sat, 8 Jan 2022 21:57:19 +0000 (21:57 +0000)
git-svn-id: file:///svnroot/lcore/trunk@165 b1de8a11-f9be-4011-bde0-cc7ace90066a

lcorernd.pas

index 6f1fe4877cc44df1b1bd3333a423f14d66fff4d0..b43530551e21bddfc7571d7c38183a0b10d8ea74 100644 (file)
@@ -145,6 +145,13 @@ uses
     {$endif}\r
   {$endif}\r
   fastmd5,sysutils;\r
+{$endif}\r
+\r
+const\r
+  wordsizeshift=2;\r
+  wordsize=1 shl wordsizeshift;\r
+\r
+{$ifndef nolcorernd}\r
 \r
 {$ifdef unix}{$include unixstuff.inc}{$endif}\r
 \r
@@ -170,8 +177,6 @@ type
   hashtype=tmd5;\r
 \r
 const\r
-  wordsizeshift=2;\r
-  wordsize=1 shl wordsizeshift;\r
   //wordsize check commented out for d3 compatibility\r
   //{ $if (wordsize <> sizeof(wordtype))}'wordsizeshift must be setcorrectly'{ $ifend}\r
   hashsize=sizeof(hashtype);\r