[SDL] David Olofson's smooth scroll example

Sam Lantinga slouken at devolution.com
Wed Jul 10 10:14:01 PDT 2002

> Dominique Louis wrote:

>  > I do not know what that might be at this stage. When I find out I
>  > will let you know.

> Nevermind, Dominique, I figured it out. There is a symbol __BORLANDC__ 
> which does the trick. So, what I did was to add it to the condition in 
> begin_code.h:

> #if defined(_MSC_VER) || defined(__BORLANDC__)
> #define __inline__  __inline

Wierd, what version of SDL are you using?  The latest code in CVS has
the following section:

/* Add any special compiler-specific cases here */
#if defined(_MSC_VER) || defined(__BORLANDC__) || \
    defined(__DMC__) || defined(__SC__) || \
    defined(__WATCOMC__) || defined(__LCC__)
#ifndef __inline__
#define __inline__      __inline

	-Sam Lantinga, Software Engineer, Blizzard Entertainment

More information about the SDL mailing list