include/SDL_stdinc.h
changeset 4492 bff93336121e
parent 3697 f7b03b6838cb
child 4729 1f7ad083fd3c
child 4755 436183eb30c8
equal deleted inserted replaced
4491:2cd7bb613a83 4492:bff93336121e
    98 #else
    98 #else
    99 #define SDL_reinterpret_cast(type, expression) ((type)(expression))
    99 #define SDL_reinterpret_cast(type, expression) ((type)(expression))
   100 #define SDL_static_cast(type, expression) ((type)(expression))
   100 #define SDL_static_cast(type, expression) ((type)(expression))
   101 #endif
   101 #endif
   102 /*@}*//*Cast operators*/
   102 /*@}*//*Cast operators*/
       
   103 
       
   104 /* Define a four character code as a Uint32 */
       
   105 #define SDL_FOURCC(A, B, C, D) \
       
   106     ((SDL_static_cast(Uint32, SDL_static_cast(Uint8, (A))) << 0) | \
       
   107      (SDL_static_cast(Uint32, SDL_static_cast(Uint8, (B))) << 8) | \
       
   108      (SDL_static_cast(Uint32, SDL_static_cast(Uint8, (C))) << 16) | \
       
   109      (SDL_static_cast(Uint32, SDL_static_cast(Uint8, (D))) << 24))
   103 
   110 
   104 /**
   111 /**
   105  *  \name Basic data types
   112  *  \name Basic data types
   106  */
   113  */
   107 /*@{*/
   114 /*@{*/