win32 porting
authorShlomi Fish <shlomif@shlomifish.org>
Sat, 8 Jun 2019 16:32:48 +0000 (19:32 +0300)
committerShlomi Fish <shlomif@shlomifish.org>
Sat, 8 Jun 2019 16:32:48 +0000 (19:32 +0300)
.appveyor.yml
fortune-mod/util/fortune-mod-common.h

index 0ad1272a609a4890580237a347a190f3fe7976b1..c34bd396002e63143bab661f22dc255f1c1fb996 100644 (file)
@@ -16,7 +16,7 @@ install:
     - SET PERL_LOCAL_LIB_ROOT=C:/Perl5
     - SET PERL_MB_OPT=--install_base C:/Perl5
     - SET PERL_MM_OPT=INSTALL_BASE=C:/Perl5
-    - cpanm --notest Dir::Manifest Dist::Zilla Env::Path Games::Solitaire::Verify::Solution IO::All Inline Inline::C Perl::Tidy Pod::Coverage::TrustPod Pod::Weaver::Section::Support String::ShellQuote Test::Code::TidyAll Test::CPAN::Changes Test::Differences Test::EOL Test::Kwalitee Test::NoTabs Test::Pod Test::Pod::Coverage Test::RunValgrind Test::TrailingSpace Test::Trap
+    - cpanm --notest Env::Path IO::All Perl::Tidy Pod::Coverage::TrustPod String::ShellQuote Test::Code::TidyAll Test::Differences Test::EOL Test::Pod Test::Pod::Coverage Test::RunValgrind Test::TrailingSpace Test::Trap
     - git clone https://github.com/rrthomas/Recode ./recode
     - C:\msys64\usr\bin\bash.exe -l -x c:/projects/fortune-mod/recode/build-aux/appveyor-install.sh
     - C:\msys64\usr\bin\bash.exe -x -lc "cd c:/projects/fortune-mod/recode && ./bootstrap && ./configure --enable-silent-rules %CONFIGURE_FLAGS% && make && make install"
index baab67784565705690fdc2590d2cb9658cd272c8..32ceaed84ae7f8bb28c09c7d5db775ff81a821d7 100644 (file)
@@ -57,3 +57,7 @@
 #ifndef MAXPATHLEN
 #define MAXPATHLEN      1024
 #endif /* MAXPATHLEN */
+#if defined(_WIN32)
+#define random(x) rand(x)
+#define srandom(x) srand(x)
+#endif