forked from JetBrains/kotlin-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove some hacks from libcurl sample
- Loading branch information
1 parent
1c2af73
commit d07295d
Showing
1 changed file
with
1 addition
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
#include <stdio.h> | ||
#include <stddef.h> | ||
|
||
// Those types are needed but not defined or used in libcurl headers. | ||
typedef size_t header_callback(char *buffer, size_t size, size_t nitems, void *userdata); | ||
typedef size_t write_data_callback(void *buffer, size_t size, size_t nmemb, void *userp); | ||
|
||
extern void something_using_callback1(header_callback*); | ||
extern void something_using_callback2(write_data_callback*); |