Skip to content
Snippets Groups Projects
Commit 8961cce2 authored by neil's avatar neil
Browse files

On Apple, inline is taken seriously and doesn't get a symbol

git-svn-id: http://svn.net-core.org/repos/t-engine4@611 51575b47-30f0-44d4-a5cc-537603b46e54
parent 7fcebc42
No related branches found
No related tags found
No related merge requests found
......@@ -376,7 +376,10 @@ int get_min_array_size64(void) {
* init_gen_rand or init_by_array must be called before this function.
* @return 32-bit pseudorandom number
*/
inline uint32_t gen_rand32(void) {
#ifndef __APPLE__
inline
#endif
uint32_t gen_rand32(void) {
uint32_t r;
assert(initialized);
......
......@@ -49,7 +49,10 @@ void display_put_string(SDL_Surface *surface, const char *s, int x, int y, int r
}
}
inline void sdlDrawImage(SDL_Surface *dest, SDL_Surface *image, int x, int y)
#ifndef __APPLE__
inline
#endif
void sdlDrawImage(SDL_Surface *dest, SDL_Surface *image, int x, int y)
{
SDL_Rect r;
r.w=image->w;
......
......@@ -39,7 +39,10 @@ extern "C" {
extern SDL_Surface *screen;
void display_put_char(SDL_Surface *surface, char c, int x, int y, int r, int g, int b);
void display_put_string(SDL_Surface *surface, const char *s, int x, int y, int r, int g, int b);
inline void sdlDrawImage(SDL_Surface *dest, SDL_Surface *image, int x, int y);
#ifndef __APPLE__
inline
#endif
void sdlDrawImage(SDL_Surface *dest, SDL_Surface *image, int x, int y);
#ifdef __cplusplus
} /* extern "C" */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment