[ltrace-commits] 01/03: Drop uses of #pragma once

Petr Machata pmachata-guest at moszumanska.debian.org
Thu Jul 31 14:10:42 UTC 2014


This is an automated email from the git hooks/post-receive script.

pmachata-guest pushed a commit to branch master
in repository ltrace.

commit fed5162d8fdb09aa95b3cebab93558f2933090e7
Author: Petr Machata <pmachata at redhat.com>
Date:   Thu Jul 31 11:37:09 2014 +0200

    Drop uses of #pragma once
---
 dwarf_prototypes.h | 5 ++++-
 ltrace.1           | 1 -
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dwarf_prototypes.h b/dwarf_prototypes.h
index eee71df..9966446 100644
--- a/dwarf_prototypes.h
+++ b/dwarf_prototypes.h
@@ -1,4 +1,5 @@
-#pragma once
+#ifndef DWARF_PROTOTYPES_H
+#define DWARF_PROTOTYPES_H
 
 #include <stdbool.h>
 #include <elfutils/libdwfl.h>
@@ -7,3 +8,5 @@
 #include "library.h"
 
 bool import_DWARF_prototypes(struct library *lib);
+
+#endif /* DWARF_PROTOTYPES_H */
diff --git a/ltrace.1 b/ltrace.1
index e7facaf..382f09b 100644
--- a/ltrace.1
+++ b/ltrace.1
@@ -234,7 +234,6 @@ Filters are specified with the \-l, \-e and \-x options. In short they mean:
 Suppose I have a library defined with this header \fBtstlib.h\fR:
 .PP
 .Vb 6
-\& #pragma once
 \& void func_f_lib(void);
 \& void func_g_lib(void);
 .Ve

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/ltrace.git



More information about the ltrace-commits mailing list