Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
4d4c55d0
Commit
4d4c55d0
authored
Mar 13, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Hardcode some types for Windows platforms.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
667bc336
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
93 deletions
+17
-93
configure
configure
+0
-54
configure.ac
configure.ac
+1
-1
config.h.in
include/config.h.in
+0
-18
port.h
include/wine/port.h
+16
-20
No files found.
configure
View file @
4d4c55d0
...
...
@@ -17471,60 +17471,6 @@ _ACEOF
;;
esac
ac_fn_c_check_type
"
$LINENO
"
"mode_t"
"ac_cv_type_mode_t"
"
$ac_includes_default
"
if
test
"x
$ac_cv_type_mode_t
"
=
xyes
;
then
:
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_MODE_T 1
_ACEOF
fi
ac_fn_c_check_type
"
$LINENO
"
"off_t"
"ac_cv_type_off_t"
"
$ac_includes_default
"
if
test
"x
$ac_cv_type_off_t
"
=
xyes
;
then
:
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_OFF_T 1
_ACEOF
fi
ac_fn_c_check_type
"
$LINENO
"
"pid_t"
"ac_cv_type_pid_t"
"
$ac_includes_default
"
if
test
"x
$ac_cv_type_pid_t
"
=
xyes
;
then
:
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_PID_T 1
_ACEOF
fi
ac_fn_c_check_type
"
$LINENO
"
"size_t"
"ac_cv_type_size_t"
"
$ac_includes_default
"
if
test
"x
$ac_cv_type_size_t
"
=
xyes
;
then
:
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_SIZE_T 1
_ACEOF
fi
ac_fn_c_check_type
"
$LINENO
"
"ssize_t"
"ac_cv_type_ssize_t"
"
$ac_includes_default
"
if
test
"x
$ac_cv_type_ssize_t
"
=
xyes
;
then
:
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_SSIZE_T 1
_ACEOF
fi
ac_fn_c_check_type
"
$LINENO
"
"long long"
"ac_cv_type_long_long"
"
$ac_includes_default
"
if
test
"x
$ac_cv_type_long_long
"
=
xyes
;
then
:
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_LONG_LONG 1
_ACEOF
fi
ac_fn_c_check_type
"
$LINENO
"
"fsblkcnt_t"
"ac_cv_type_fsblkcnt_t"
"
$ac_includes_default
"
if
test
"x
$ac_cv_type_fsblkcnt_t
"
=
xyes
;
then
:
...
...
configure.ac
View file @
4d4c55d0
...
...
@@ -2312,7 +2312,7 @@ fi
dnl **** Check for types ****
AC_C_INLINE
AC_CHECK_TYPES([
mode_t, off_t, pid_t, size_t, ssize_t, long long,
fsblkcnt_t, fsfilcnt_t])
AC_CHECK_TYPES([fsblkcnt_t, fsfilcnt_t])
AC_CHECK_TYPES([sigset_t],,,[#include <sys/types.h>
#include <signal.h>])
AC_CHECK_TYPES([request_sense],,,[#include <linux/cdrom.h>])
...
...
include/config.h.in
View file @
4d4c55d0
...
...
@@ -549,9 +549,6 @@
/* Define to 1 if you have the `log2f' function. */
#undef HAVE_LOG2F
/* Define to 1 if the system has the type `long long'. */
#undef HAVE_LONG_LONG
/* Define to 1 if you have the `lrint' function. */
#undef HAVE_LRINT
...
...
@@ -606,9 +603,6 @@
/* Define to 1 if you have the <mntent.h> header file. */
#undef HAVE_MNTENT_H
/* Define to 1 if the system has the type `mode_t'. */
#undef HAVE_MODE_T
/* Define to 1 if you have the `mousemask' function. */
#undef HAVE_MOUSEMASK
...
...
@@ -699,9 +693,6 @@
/* Define to 1 if `_msg_ptr' is a member of `ns_msg'. */
#undef HAVE_NS_MSG__MSG_PTR
/* Define to 1 if the system has the type `off_t'. */
#undef HAVE_OFF_T
/* Define if mkdir takes only one argument */
#undef HAVE_ONE_ARG_MKDIR
...
...
@@ -723,9 +714,6 @@
/* Define to 1 if you have the `pclose' function. */
#undef HAVE_PCLOSE
/* Define to 1 if the system has the type `pid_t'. */
#undef HAVE_PID_T
/* Define to 1 if you have the `pipe2' function. */
#undef HAVE_PIPE2
...
...
@@ -891,18 +879,12 @@
/* Define to 1 if the system has the type `sigset_t'. */
#undef HAVE_SIGSET_T
/* Define to 1 if the system has the type `size_t'. */
#undef HAVE_SIZE_T
/* Define to 1 if you have the `snprintf' function. */
#undef HAVE_SNPRINTF
/* Define to 1 if you have the `socketpair' function. */
#undef HAVE_SOCKETPAIR
/* Define to 1 if the system has the type `ssize_t'. */
#undef HAVE_SSIZE_T
/* Define to 1 if you have the `SSLCopyPeerCertificates' function. */
#undef HAVE_SSLCOPYPEERCERTIFICATES
...
...
include/wine/port.h
View file @
4d4c55d0
...
...
@@ -53,13 +53,18 @@
#include <io.h>
#include <process.h>
#
endif
/* _WIN32 */
#
ifdef _MSC_VER
/****************************************************************
* Type definitions
*/
typedef
int
mode_t
;
typedef
long
off_t
;
typedef
int
pid_t
;
typedef
int
ssize_t
;
#endif
/* _MSC_VER */
#else
/* _WIN32 */
#if
!defined(_MSC_VER) && !defined(__int64)
#if
ndef __int64
# if defined(__x86_64__) || defined(__aarch64__) || defined(_WIN64)
# define __int64 long
# else
...
...
@@ -67,21 +72,12 @@
# endif
#endif
#ifndef HAVE_MODE_T
typedef
int
mode_t
;
#endif
#ifndef HAVE_OFF_T
typedef
long
off_t
;
#endif
#ifndef HAVE_PID_T
typedef
int
pid_t
;
#endif
#ifndef HAVE_SIZE_T
typedef
unsigned
int
size_t
;
#endif
#ifndef HAVE_SSIZE_T
typedef
int
ssize_t
;
#endif
#endif
/* _WIN32 */
/****************************************************************
* Type definitions
*/
#ifndef HAVE_FSBLKCNT_T
typedef
unsigned
long
fsblkcnt_t
;
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment