30 |
# include <config.h> |
# include <config.h> |
31 |
#endif |
#endif |
32 |
|
|
33 |
#if !defined(_CARBON_) && !defined(__APPLE__) && !defined(_WIN32_) |
#if !defined(_CARBON_) && !defined(__APPLE__) && !defined(WIN32) |
34 |
# define LINUX 1 |
# define LINUX 1 |
35 |
#endif |
#endif |
36 |
|
|
41 |
#include <iostream> |
#include <iostream> |
42 |
#include <list> |
#include <list> |
43 |
#include <fstream> |
#include <fstream> |
44 |
|
#include <sys/types.h> |
45 |
|
#include <sys/stat.h> |
46 |
|
#include <sys/fcntl.h> |
47 |
|
|
48 |
#if defined(_CARBON_) || defined(__APPLE__) || LINUX |
#if defined(_CARBON_) || defined(__APPLE__) || LINUX |
|
# include <sys/types.h> |
|
|
# include <sys/stat.h> |
|
|
# include <sys/fcntl.h> |
|
49 |
# include <sys/ioctl.h> |
# include <sys/ioctl.h> |
50 |
# include <unistd.h> |
# include <unistd.h> |
51 |
|
#elif defined(WIN32) |
52 |
|
# include <windows.h> |
53 |
|
typedef unsigned int uint; |
54 |
#endif |
#endif |
55 |
#if LINUX |
#if LINUX |
56 |
# include <linux/cdrom.h> |
# include <linux/cdrom.h> |