Skip to content

Commit

Permalink
maybe patches
Browse files Browse the repository at this point in the history
  • Loading branch information
SolDev69 committed Dec 11, 2023
1 parent 9bf5b46 commit 1c4e4f9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/util/fmemopen.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Supporting OS subroutines required: <<sbrk>>.
#include <errno.h>
#include <string.h>
#include <malloc.h>
#include "stdioext.h"
#include "extrastdio.h"

/* Describe details of an open memstream. */
typedef struct fmemcookie {
Expand Down
2 changes: 1 addition & 1 deletion src/util/fopencookie.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Supporting OS subroutines required: <<sbrk>>.
#include <stdio.h>
#include <errno.h>
#include <malloc.h>
#include "stdioext.h"
#include "extrastdio.h"

typedef struct fccookie {
void *cookie;
Expand Down
2 changes: 1 addition & 1 deletion src/util/open_memstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Supporting OS subroutines required: <<sbrk>>.
#include <errno.h>
#include <string.h>
#include <malloc.h>
#include "stdioext.h"
#include "extrastdio.h"

/* Describe details of an open memstream. */
typedef struct memstream {
Expand Down
12 changes: 4 additions & 8 deletions src/util/stdioext.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#ifndef _STDIOEXT_H
#define _STDIOEXT_H
#ifndef LEPTONICA__STDIO_H
#define LEPTONICA__STDIO_H

#ifdef __cplusplus
extern "C" {
#endif
#ifndef BUILD_HOST

#include <stdio.h>
#include <stdint.h>
Expand All @@ -21,8 +19,6 @@ FILE *fmemopen(void *buf, size_t size, const char *mode);

FILE *open_memstream(char **buf, size_t *size);

#ifdef __cplusplus
} // extern "C"
#endif

#endif /* _STDIOEXT_H */
#endif /* LEPTONICA__STDIO_H */

0 comments on commit 1c4e4f9

Please sign in to comment.