Skip to content

Commit

Permalink
Merge pull request #41 from Jan-E/master
Browse files Browse the repository at this point in the history
MSVC support
  • Loading branch information
sqmk committed Nov 13, 2015
2 parents 327c66c + 80c28bb commit e5c8ea4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config.w32
Expand Up @@ -5,5 +5,5 @@ ARG_ENABLE("jsmin", "enable jsmin support", "no");

if (PHP_JSMIN != "no") {
EXTENSION("jsmin", "php_jsmin.c");
ADD_SOURCES(configure_module_dirname, "jsmin.c", "jsmin");
ADD_SOURCES(configure_module_dirname, "utf8.c jsmin.c", "jsmin");
}
6 changes: 6 additions & 0 deletions utf8.c
Expand Up @@ -22,6 +22,12 @@
#include <alloca.h>
#endif

#ifdef WIN32
# ifndef snprintf
# define snprintf _snprintf
# endif
#endif

#include "utf8.h"

static const uint32_t offsetsFromUTF8[6] = {
Expand Down

0 comments on commit e5c8ea4

Please sign in to comment.