Lines 5-11
Link Here
|
5 |
# include <CoreFoundation/CoreFoundation.h> |
5 |
# include <CoreFoundation/CoreFoundation.h> |
6 |
# include <ApplicationServices/ApplicationServices.h> |
6 |
# include <ApplicationServices/ApplicationServices.h> |
7 |
-#elif defined(__linux__) |
7 |
-#elif defined(__linux__) |
8 |
+#elif defined(__linux__) || defined(__FreeBSD_cc_version) |
8 |
+#elif defined(__linux__) || defined(__FreeBSD__) |
9 |
# include "PSOutputDev.h" |
9 |
# include "PSOutputDev.h" |
10 |
# include <cups/cups.h> |
10 |
# include <cups/cups.h> |
11 |
#endif |
11 |
#endif |
Lines 14-20
Link Here
|
14 |
//------------------------------------------------------------------------ |
14 |
//------------------------------------------------------------------------ |
15 |
|
15 |
|
16 |
-#elif defined(__linux__) |
16 |
-#elif defined(__linux__) |
17 |
+#elif defined(__linux__) || defined(__FreeBSD_cc_version) |
17 |
+#elif defined(__linux__) || defined(__FreeBSD__) |
18 |
|
18 |
|
19 |
static void fileOut(void *stream, const char *data, int len) { |
19 |
static void fileOut(void *stream, const char *data, int len) { |
20 |
fwrite(data, 1, len, (FILE *)stream); |
20 |
fwrite(data, 1, len, (FILE *)stream); |