mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-22 07:56:33 -05:00
Removed clashing of sopen in Windows.
This commit is contained in:
parent
b90e7fdacf
commit
4bf68b6204
4 changed files with 7 additions and 6 deletions
6
util.h
6
util.h
|
|
@ -56,7 +56,7 @@ typedef struct stream STREAM;
|
|||
/**
|
||||
* Open a stream for reading. Like fopen().
|
||||
*/
|
||||
STREAM* sopen(const char* file);
|
||||
STREAM* sopen_read(const char* file);
|
||||
|
||||
/**
|
||||
* Close a stream. Like fclose().
|
||||
|
|
@ -79,7 +79,7 @@ static inline int sptrlookup(STREAM* s, int size)
|
|||
/**
|
||||
* Gets the current stream ptr.
|
||||
*/
|
||||
unsigned char* sptrget(STREAM* s)
|
||||
static inline unsigned char* sptrget(STREAM* s)
|
||||
{
|
||||
return s->pos;
|
||||
}
|
||||
|
|
@ -87,7 +87,7 @@ unsigned char* sptrget(STREAM* s)
|
|||
/**
|
||||
* Set the current stream ptr.
|
||||
*/
|
||||
void sptrset(STREAM* s, unsigned char* ptr)
|
||||
static inline void sptrset(STREAM* s, unsigned char* ptr)
|
||||
{
|
||||
s->pos = ptr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue