Navigation Menu

Skip to content

Commit

Permalink
lua-discount is buildable on windows
Browse files Browse the repository at this point in the history
Tested with MSVC++ Express 2005, all tests pass.
  • Loading branch information
asb committed Sep 17, 2008
1 parent f6979f3 commit 7c1372e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config.h
@@ -1,5 +1,10 @@
#undef USE_AMALLOC

#ifdef WINDOWS
#define strcasecmp stricmp
#define strncasecmp strnicmp
#endif

#define DL_TAG_EXTENSION 1
#define TABSTOP 4
#define COINTOSS() (rand()&1)
Expand Down
9 changes: 9 additions & 0 deletions lua-discount-dev-1.rockspec
Expand Up @@ -23,5 +23,14 @@ build = {
"resource.c",
"ldiscount.c"
}
},
platforms = {
windows = {
modules = {
discount = {
defines = {"WINDOWS"}
}
}
}
}
}

0 comments on commit 7c1372e

Please sign in to comment.