summaryrefslogtreecommitdiff
path: root/hardware/src/r820/include/rtl-sdr_export.h
diff options
context:
space:
mode:
authorArturs Artamonovs <arturs.artamonovs@protonmail.com>2022-03-12 17:48:54 +0000
committerArturs Artamonovs <arturs.artamonovs@protonmail.com>2022-03-12 17:48:54 +0000
commitec61b3e0e6084950eb4d5c95f83e442a01765a35 (patch)
treef9dee1721080ce33bf5452cc2f82deeafb047cc7 /hardware/src/r820/include/rtl-sdr_export.h
parent4274248ca037308315f38ec77e66fddd8eae1395 (diff)
downloadr820sdr-init-ec61b3e0e6084950eb4d5c95f83e442a01765a35.tar.gz
r820sdr-init-ec61b3e0e6084950eb4d5c95f83e442a01765a35.zip
Working project
Diffstat (limited to 'hardware/src/r820/include/rtl-sdr_export.h')
-rw-r--r--hardware/src/r820/include/rtl-sdr_export.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/hardware/src/r820/include/rtl-sdr_export.h b/hardware/src/r820/include/rtl-sdr_export.h
new file mode 100644
index 0000000..69e178d
--- /dev/null
+++ b/hardware/src/r820/include/rtl-sdr_export.h
@@ -0,0 +1,47 @@
+/*
+ * rtl-sdr, turns your Realtek RTL2832 based DVB dongle into a SDR receiver
+ * Copyright (C) 2012 by Hoernchen <la@tfc-server.de>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef RTLSDR_EXPORT_H
+#define RTLSDR_EXPORT_H
+
+#if defined __GNUC__
+# if __GNUC__ >= 4
+# define __SDR_EXPORT __attribute__((visibility("default")))
+# define __SDR_IMPORT __attribute__((visibility("default")))
+# else
+# define __SDR_EXPORT
+# define __SDR_IMPORT
+# endif
+#elif _MSC_VER
+# define __SDR_EXPORT __declspec(dllexport)
+# define __SDR_IMPORT __declspec(dllimport)
+#else
+# define __SDR_EXPORT
+# define __SDR_IMPORT
+#endif
+
+#ifndef rtlsdr_STATIC
+# ifdef rtlsdr_EXPORTS
+# define RTLSDR_API __SDR_EXPORT
+# else
+# define RTLSDR_API __SDR_IMPORT
+# endif
+#else
+#define RTLSDR_API
+#endif
+#endif /* RTLSDR_EXPORT_H */