Permalink
Browse files

fix cross-platform build

git-svn-id: https://plibc.svn.sourceforge.net/svnroot/plibc/trunk/plibc@78 1596915d-9e13-0410-ab7f-96e59408e0f0
  • Loading branch information...
1 parent af50090 commit d5054987785dd92b2d9ad9664c3c2cf4d01d9a6c ndurner committed Mar 24, 2011
Showing with 10 additions and 4 deletions.
  1. +2 −2 bootstrap
  2. +1 −1 src/choosefile.c
  3. +1 −0 src/include/plibc_private.h
  4. +5 −0 src/intl.c
  5. +1 −1 src/resolv_ms.c
View
@@ -1,2 +1,2 @@
-#!/bin/sh
-autoreconf -f -i
+#!/bin/sh
+autoreconf -f -i
View
@@ -23,7 +23,7 @@
*/
#include "plibc_private.h"
-#include <Commdlg.h>
+#include <commdlg.h>
/* Remember the previously selected path */
static char szFilename[_MAX_PATH + 1] = "\0";
@@ -44,6 +44,7 @@
#include <sys/stat.h>
#include <limits.h>
#include <locale.h>
+#include <objbase.h>
typedef struct {
char *pStart;
View
@@ -26,6 +26,7 @@
char *_win_bindtextdomain(const char *domainname, const char *dirname)
{
+#ifdef HAVE_LIBINTL
char szDirname[_MAX_PATH + 1];
int i;
@@ -37,6 +38,10 @@ char *_win_bindtextdomain(const char *domainname, const char *dirname)
}
return bindtextdomain(domainname, szDirname);
+#else
+ errno = ENOSYS;
+ return NULL;
+#endif
}
/* end of intl.c */
View
@@ -16,7 +16,7 @@ Revision History:
--*/
#include <winsock2.h>
-#include <Ws2tcpip.h>
+#include <ws2tcpip.h>
#include <stdio.h> // sprintf()
#include <stdlib.h> // calloc(), strtoul()
#include <malloc.h> // calloc()

0 comments on commit d505498

Please sign in to comment.