Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
1f3a385e
Commit
1f3a385e
authored
Dec 28, 2021
by
mimaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build error and refine definition of `ssize_t` on MSVC.
parent
6f5c211c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
9 deletions
+5
-9
include/mruby/common.h
include/mruby/common.h
+5
-0
mrbgems/mruby-io/src/io.c
mrbgems/mruby-io/src/io.c
+0
-6
mrbgems/mruby-socket/src/socket.c
mrbgems/mruby-socket/src/socket.c
+0
-3
No files found.
include/mruby/common.h
View file @
1f3a385e
...
@@ -28,6 +28,11 @@
...
@@ -28,6 +28,11 @@
# define MRB_END_DECL
# define MRB_END_DECL
#endif
#endif
#if defined _MSC_VER
#include <BaseTsd.h>
typedef
SSIZE_T
ssize_t
;
#endif
/**
/**
* Shared compiler macros
* Shared compiler macros
*/
*/
...
...
mrbgems/mruby-io/src/io.c
View file @
1f3a385e
...
@@ -34,12 +34,6 @@
...
@@ -34,12 +34,6 @@
typedef
long
fsuseconds_t
;
typedef
long
fsuseconds_t
;
typedef
int
fmode_t
;
typedef
int
fmode_t
;
typedef
int
mrb_io_read_write_size
;
typedef
int
mrb_io_read_write_size
;
#ifndef MRB_MINGW32_LEGACY
#if !defined(_SSIZE_T_) && !defined(_SSIZE_T_DEFINED) && \
!defined(__have_typedef_ssize_t)
typedef
SSIZE_T
ssize_t
;
#endif
#endif
#ifndef O_TMPFILE
#ifndef O_TMPFILE
#define O_TMPFILE O_TEMPORARY
#define O_TMPFILE O_TEMPORARY
...
...
mrbgems/mruby-socket/src/socket.c
View file @
1f3a385e
...
@@ -13,9 +13,6 @@
...
@@ -13,9 +13,6 @@
#include <winerror.h>
#include <winerror.h>
#define SHUT_RDWR SD_BOTH
#define SHUT_RDWR SD_BOTH
#ifndef _SSIZE_T_DEFINED
typedef
int
ssize_t
;
#endif
typedef
int
fsize_t
;
typedef
int
fsize_t
;
#else
#else
#include <sys/types.h>
#include <sys/types.h>
...
...
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