Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port to MSVC with CMake script #567

Merged
merged 4 commits into from
Apr 4, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add win32 compatibility layer by defining strcasecmp and strncasecmp …
…to corresponding win32 function. Change to guarding macro from __MINGW32__ to WIN32.
  • Loading branch information
harrysummer committed Apr 3, 2019
commit 289ecc5aec04517f22ead674617c692908194503
2 changes: 2 additions & 0 deletions src/justenoughharfbuzz.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 10,8 @@
#include <lauxlib.h>
#include <lualib.h>

#include "silewin32.h"

/* The following function stolen from XeTeX_ext.c */
static hb_tag_t
read_tag_with_param(const char* cp, int* param)
Expand Down
2 changes: 2 additions & 0 deletions src/justenoughicu.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 12,8 @@
#include <lauxlib.h>
#include <lualib.h>

#include "silewin32.h"

typedef int32_t (*conversion_function_t)(UChar *dest, int32_t destCapacity, const UChar *src, int32_t srcLength, const char *locale, UErrorCode *pErrorCode);

#define utf8_to_uchar(in, in_l, out, out_l) { \
Expand Down
5 changes: 4 additions & 1 deletion src/silewin32.h
Original file line number Diff line number Diff line change
@@ -1,4 1,7 @@
#ifdef __MINGW32__
#ifdef WIN32
#define strcasecmp _stricmp
#define strncasecmp _strnicmp

static char *strcasestr(const char *haystack, const char *needle)
{
int i;
Expand Down