]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Add a comment about the lack of guard in dnsdist-lua-ffi-interface.h 8505/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 18 Feb 2020 09:37:54 +0000 (10:37 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 18 Feb 2020 09:37:54 +0000 (10:37 +0100)
Reported by LGTM.

pdns/dnsdistdist/dnsdist-lua-ffi-interface.h

index f1ae6cacdd7425e0b07a6909d77b1fa0d4d6bffd..d56b73510ad7a0864645417ef7a2adf44fa2e400 100644 (file)
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
+
+/* we don't use a guard (C++ pragma once or even #ifndef because this file (the .inc version)
+   is passed to the Lua FFI wrapper which doesn't support it */
+
 typedef struct dnsdist_ffi_dnsquestion_t dnsdist_ffi_dnsquestion_t;
 typedef struct dnsdist_ffi_servers_list_t dnsdist_ffi_servers_list_t;
 typedef struct dnsdist_ffi_server_t dnsdist_ffi_server_t;