tracy/server/TracyMmap.hpp

20 lines
361 B
C++
Raw Permalink Normal View History

2020-02-12 18:22:46 +00:00
#ifndef __TRACYMMAP_HPP__
#define __TRACYMMAP_HPP__
2021-10-07 21:28:40 +00:00
#if !defined _WIN32
2020-02-12 18:22:46 +00:00
# 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