summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2006-11-30 02:28:49 +0000
committerTill Straumann <strauman@slac.stanford.edu>2006-11-30 02:28:49 +0000
commit43ea3692ceb89bb1de2bbaa0a63ada28380c39c2 (patch)
tree979940bee8015074905d4c0e6491f8b3805326af
parent297e2380eecca825cfb1db0d38ee93bbec7f2ace (diff)
downloadrtems-43ea3692ceb89bb1de2bbaa0a63ada28380c39c2.tar.bz2
* vmeUniverse/vmeTsi148.h: user now must define a symbol
for the header to declare 'dump info'-style routine. This is in order to avoid pulling in <stdio.h>.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/shared/ChangeLog6
-rw-r--r--c/src/lib/libbsp/shared/vmeUniverse/vmeTsi148.h12
2 files changed, 18 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/shared/ChangeLog b/c/src/lib/libbsp/shared/ChangeLog
index b08404bfdd..9df8e8f20f 100644
--- a/c/src/lib/libbsp/shared/ChangeLog
+++ b/c/src/lib/libbsp/shared/ChangeLog
@@ -1,3 +1,9 @@
+2006-11-29 Till Straumann <strauman@slac.stanford.edu>
+
+ * vmeUniverse/vmeTsi148.h: user now must define a symbol
+ for the header to declare 'dump info'-style routine. This
+ is in order to avoid pulling in <stdio.h>.
+
2006-11-17 Joel Sherrill <joel@OARcorp.com>
* clock_driver_stub.c, clockdrv_shell.c: Use common clock driver
diff --git a/c/src/lib/libbsp/shared/vmeUniverse/vmeTsi148.h b/c/src/lib/libbsp/shared/vmeUniverse/vmeTsi148.h
index 0e2bcc2327..575e23daec 100644
--- a/c/src/lib/libbsp/shared/vmeUniverse/vmeTsi148.h
+++ b/c/src/lib/libbsp/shared/vmeUniverse/vmeTsi148.h
@@ -191,6 +191,16 @@ vmeTsi148XlateAddr(
unsigned long *paOut/* where to put result */
);
+
+/* avoid pulling stdio.h into this header.
+ * Applications that want a declaration of the
+ * following routines should
+ * #include <stdio.h>
+ * #define _VME_TSI148_DECLARE_SHOW_ROUTINES
+ * #include <vmeTsi148.h>
+ */
+#ifdef _VME_TSI148_DECLARE_SHOW_ROUTINES
+
/* Print the current configuration of all outbound ports to
* f (stdout if NULL)
*/
@@ -211,6 +221,8 @@ vmeTsi148InboundPortsShowXX(BERegister *base, FILE *f);
void
vmeTsi148InboundPortsShow(FILE *f);
+#endif
+
/* Disable all in- or out-bound ports, respectively */
void