Various compilation and unit test fixes.
This commit is contained in:
parent
5887dac5b1
commit
48d91662df
@ -21,7 +21,7 @@ case "$shrext_cmds" in
|
||||
*) SONAME="libzzuf$shrext_cmds" ;;
|
||||
esac
|
||||
AC_MSG_RESULT($SONAME)
|
||||
AC_SUBST(SONAME)
|
||||
AC_DEFINE_UNQUOTED(SONAME, "$SONAME", [Define to the libzzuf full name])
|
||||
|
||||
# Optimizations
|
||||
AC_TRY_CFLAGS(-g -O2, CFLAGS="${CFLAGS} -g -O2")
|
||||
|
||||
@ -21,11 +21,10 @@
|
||||
|
||||
#define ATTRIBUTE_PRINTF(x,y)
|
||||
|
||||
#define HAVE_WINDOWS_H 1
|
||||
#define HAVE_WINSOCK2_H 1
|
||||
#define HAVE_IO_H 1
|
||||
#define HAVE_PROCESS_H 1
|
||||
|
||||
#define HAVE_WINDOWS_H 1
|
||||
#define HAVE_WINSOCK2_H 1
|
||||
#define HAVE__PIPE
|
||||
|
||||
/* Win32-specific, of course. */
|
||||
|
||||
@ -1,23 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
failure=0
|
||||
|
||||
config_h_in=$(dirname "$0")/../config.h.in
|
||||
win32_config_h=$(dirname "$0")/../win32/config.h
|
||||
|
||||
for key in $(sed -ne 's/.*#undef *\([A-Za-z0-9_]*\).*/\1/p' "$config_h_in");
|
||||
do
|
||||
if ! grep '[ef] \<'"$key"'\>' "$win32_config_h" >/dev/null 2>&1; then
|
||||
echo "error: $key missing from win32/config.h"
|
||||
failure=1
|
||||
fi
|
||||
done
|
||||
|
||||
if test "$failure" != "0"; then
|
||||
exit 1
|
||||
else
|
||||
echo "0 errors in Win32 config.h"
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
#!/bin/sh
|
||||
|
||||
failure=0
|
||||
|
||||
config_h_in=$(dirname "$0")/../config.h.in
|
||||
msvc_config_h=$(dirname "$0")/../msvc/config.h
|
||||
|
||||
for key in $(sed -ne 's/.*#undef *\([A-Za-z0-9_]*\).*/\1/p' "$config_h_in");
|
||||
do
|
||||
if ! grep '[ef] \<'"$key"'\>' "$msvc_config_h" >/dev/null 2>&1; then
|
||||
echo "error: $key missing from msvc/config.h"
|
||||
failure=1
|
||||
fi
|
||||
done
|
||||
|
||||
if test "$failure" != "0"; then
|
||||
exit 1
|
||||
else
|
||||
echo "0 errors in Win32 config.h"
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
|
||||
@ -15,6 +15,7 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#if defined HAVE_WINDOWS_H
|
||||
# include <windows.h>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user