Forum » » Développement » » Multi platform C ifdef definitions
Post� : 07-10-2011 17:33 ![]()
// ******************************************************************* **************
/* Â Multi Platform Compatible AllocVec */
void * MyAllocVec( int MyVecSize, int MODE ){
void *pict = NULL;
#if defined( __amiga__ )
#if defined( __amigaos4__ )
pict = IExec->AllocVec( MyVecSize, MODE );
#elif defined( __MORPHOS__ )
pict = AllocVec( MyVecSize, MODE );
#else
/* Other AmigaS OSes !!!!!include!!!!!s */
#endif
#endif
return pict;
}
Cet article provient de Meta-MorphOS
https://www.meta-morphos.org/viewtopic.php?topic=827&forum=52