diff options
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/shared/ChangeLog | 6 | ||||
-rw-r--r-- | c/src/lib/libbsp/shared/vmeUniverse/vmeTsi148.h | 12 |
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 |