Mercurial > hg > dmlib
view src/dmmutex.h @ 1432:a9516570cc26
Improve build, so that we can build the tools and tests with minimal
depencies (e.g. without libSDL linking when possible.) And this also on
Win32 MinGW.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 22 Nov 2017 01:33:21 +0200 |
parents | 1e5cf1144f36 |
children | 5e5f75b45f8d |
line wrap: on
line source
/* * DMLib * -- Bogus implementations of SDL mutex functions * Programmed and designed by Matti 'ccr' Hamalainen * (C) Copyright 2012 Tecnic Software productions (TNSP) */ #ifndef DMMUTEX_H #define DMMUTEX_H 1 Uint32 SDL_ThreadID() { return 0; } int SDL_mutexP(SDL_mutex *p) { (void) p; return 0; } int SDL_mutexV(SDL_mutex *p) { (void) p; return 0; } SDL_mutex * SDL_CreateMutex() { return NULL; } void SDL_DestroyMutex(SDL_mutex *p) { (void) p; } #endif