ref: b48237494e0367a324722e106ea2c1ad5121f4b5
parent: aababbe6e30298c460a5837831c0e81ffbd3c2f7
author: Diego Biurrun <diego@biurrun.de>
date: Sun Nov 16 13:45:26 EST 2014
os/2: Avoid silly macro indirection for function pointer initialization
--- a/src/device.c
+++ b/src/device.c
@@ -87,10 +87,6 @@
#elif defined( __OS2__ )
static int os2_open ( dvdcss_t, const char * );
-/* just use macros for libc */
-# define os2_seek libc_seek
-# define os2_read libc_read
-# define os2_readv libc_readv
#endif
int dvdcss_use_ioctls( dvdcss_t dvdcss )
@@ -370,9 +366,9 @@
( !psz_device[2] || ( psz_device[2] == '\\' && !psz_device[3] ) ) )
{
print_debug( dvdcss, "using OS/2 API for access" );
- dvdcss->pf_seek = os2_seek;
- dvdcss->pf_read = os2_read;
- dvdcss->pf_readv = os2_readv;
+ dvdcss->pf_seek = libc_seek;
+ dvdcss->pf_read = libc_read;
+ dvdcss->pf_readv = libc_readv;
return os2_open( dvdcss, psz_device );
}
else