d840165a32
- `etc` module was renamed to `etcpak` and modified to use the new library. - PKM importer is removed in the process, it's obsolete. - Old library `etc2comp` is removed. - S3TC compression no longer done via `squish` (but decompression still is). - Slight modifications to etcpak sources for MinGW compatibility, to fix LLVM `-Wc++11-narrowing` errors, and to allow using vendored or system libpng. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
19 lines
346 B
C++
19 lines
346 B
C++
#ifndef __MMAP_HPP__
|
|
#define __MMAP_HPP__
|
|
|
|
#ifndef _WIN32
|
|
# include <sys/mman.h>
|
|
#else
|
|
# include <string.h>
|
|
# include <sys/types.h>
|
|
|
|
# define PROT_READ 1
|
|
# define PROT_WRITE 2
|
|
# define MAP_SHARED 0
|
|
|
|
void* mmap( void* addr, size_t length, int prot, int flags, int fd, off_t offset );
|
|
int munmap( void* addr, size_t length );
|
|
|
|
#endif
|
|
|
|
#endif
|