Added some notes from the benefit of my experience. :)
1.1 --- a/include/SDL_loadso.h Thu Jul 10 07:46:19 2003 +0000
1.2 +++ b/include/SDL_loadso.h Thu Jul 10 07:56:19 2003 +0000
1.3 @@ -28,6 +28,21 @@
1.4 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
1.5 /* System dependent library loading routines */
1.6
1.7 +/* Some things to keep in mind:
1.8 + - These functions only work on C function names. Other languages may
1.9 + have name mangling and intrinsic language support that varies from
1.10 + compiler to compiler.
1.11 + - Make sure you declare your function pointers with the same calling
1.12 + convention as the actual library function. Your code will crash
1.13 + mysteriously if you do not do this.
1.14 + - Avoid namespace collisions. If you load a symbol from the library,
1.15 + it is not defined whether or not it goes into the global symbol
1.16 + namespace for the application. If it does and it conflicts with
1.17 + symbols in your code or other shared libraries, you will not get
1.18 + the results you expect. :)
1.19 +*/
1.20 +
1.21 +
1.22 #ifndef _SDL_loadso_h
1.23 #define _SDL_loadso_h
1.24