Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
48696e7e
Unverified
Commit
48696e7e
authored
Aug 07, 2020
by
Michael Grunder
Committed by
GitHub
Aug 07, 2020
Browse files
Don't use non-installed win32.h helper in examples (#863)
See: #862
parent
faa1c486
Changes
3
Hide whitespace changes
Inline
Side-by-side
examples/example-push.c
View file @
48696e7e
...
@@ -31,7 +31,6 @@
...
@@ -31,7 +31,6 @@
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include <hiredis.h>
#include <hiredis.h>
#include <win32.h>
#define KEY_COUNT 5
#define KEY_COUNT 5
...
...
examples/example-ssl.c
View file @
48696e7e
...
@@ -4,7 +4,10 @@
...
@@ -4,7 +4,10 @@
#include <hiredis.h>
#include <hiredis.h>
#include <hiredis_ssl.h>
#include <hiredis_ssl.h>
#include <win32.h>
#ifdef _MSC_VER
#include <winsock2.h>
/* For struct timeval */
#endif
int
main
(
int
argc
,
char
**
argv
)
{
int
main
(
int
argc
,
char
**
argv
)
{
unsigned
int
j
;
unsigned
int
j
;
...
...
examples/example.c
View file @
48696e7e
...
@@ -2,7 +2,10 @@
...
@@ -2,7 +2,10 @@
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include <hiredis.h>
#include <hiredis.h>
#include <win32.h>
#ifdef _MSC_VER
#include <winsock2.h>
/* For struct timeval */
#endif
int
main
(
int
argc
,
char
**
argv
)
{
int
main
(
int
argc
,
char
**
argv
)
{
unsigned
int
j
,
isunix
=
0
;
unsigned
int
j
,
isunix
=
0
;
...
...
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