
/* sg.c
   Switcher for operating system dependent transport level modules of libburn.
   Copyright (C) 2009 - 2016 Thomas Schmitt <scdbackup@gmx.net>, 
   provided under GPLv2+
*/

#include "../config.h"


#ifdef Libburn_use_sg_dummY

#include "sg-dummy.c"

#else
#ifdef Libburn_use_libcdiO

#include "sg-libcdio.c"

#else
#ifdef __NetBSD__

#include "sg-netbsd.c"

#else
#ifdef __OpenBSD__

#include "sg-netbsd.c"

#else
#ifdef __FreeBSD__

#ifdef Libburn_use_sg_freebsd_porT
#include "sg-freebsd-port.c"
#else
#include "sg-freebsd.c"
#endif

#else
#ifdef __FreeBSD_kernel__

#ifdef Libburn_use_sg_freebsd_porT
#include "sg-freebsd-port.c"
#else
#include "sg-freebsd.c"
#endif

#else
#ifdef __linux

#include "sg-linux.c"

#else
#ifdef __sun

#include "sg-solaris.c"

#else

/* The dummy adapter formally fulfills the expectations of libburn towards
   its SCSI command transport. It will show no drives and perform no SCSI
   commands.
   libburn will then be restricted to using its stdio pseudo drives.
*/
static int intentional_compiler_warning(void)
{
 int INTENTIONAL_COMPILER_WARNING_;
 int Cannot_recognize_supported_operating_system_;
 int Like_GNU_Linux_or_FreeBSD_or_Solaris_or_NetBSD_;
 int Have_to_use_dummy_MMC_transport_adapter_;
 int This_libburn_will_not_be_able_to_operate_on_real_CD_drives;
 int Have_to_use_dummy_MMC_transport_adapter;
 int Like_GNU_Linux_or_FreeBSD_or_Solaris_or_NetBSD;
 int Cannot_recognize_supported_operating_system;
 int INTENTIONAL_COMPILER_WARNING;

 return(0);
}

#include "sg-dummy.c"

#endif /* ! __sun */
#endif /* ! __linux */
#endif /* ! __FreeBSD_kernel__ */
#endif /* ! __FreeBSD__ */
#endif /* ! __OpenBSD__ */
#endif /* ! __NetBSD__ */
#endif /* ! Libburn_use_libcdiO */
#endif /* ! Libburn_use_sg_dummY */

