Skip to content

Instantly share code, notes, and snippets.

@ynkdir
Created September 11, 2012 14:17
Show Gist options
  • Save ynkdir/3698918 to your computer and use it in GitHub Desktop.
Save ynkdir/3698918 to your computer and use it in GitHub Desktop.
forwarding libintl.dll
rem create forwarding dll, libintl.dll forwarding intl.dll
rem reference: http://hp.vector.co.jp/authors/VA050396/tech_09.html
lib /DEF:intl.def
cl /LD libintl.c libintl.def intl.lib
LIBRARY INTL
EXPORTS
gettext
bindtextdomain
textdomain
bind_textdomain_codeset
#include <windows.h>
#pragma comment(linker, "/nodefaultlib")
BOOL WINAPI _DllMainCRTStartup(HMODULE a, DWORD b, void* c)
{
return TRUE;
}
LIBRARY LIBINTL
EXPORTS
gettext = intl.gettext
bindtextdomain = intl.bindtextdomain
textdomain = intl.textdomain
bind_textdomain_codeset = intl.bind_textdomain_codeset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment