[PATCH] accessibility/speakup/speakup_dtlk: Add header file macro definition

Li zeming posted 1 patch 3 years, 9 months ago
drivers/accessibility/speakup/speakup_dtlk.h | 3 +++
1 file changed, 3 insertions(+)
[PATCH] accessibility/speakup/speakup_dtlk: Add header file macro definition
Posted by Li zeming 3 years, 9 months ago
Add header file macro definition.

Signed-off-by: Li zeming <zeming@nfschina.com>
---
 drivers/accessibility/speakup/speakup_dtlk.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/accessibility/speakup/speakup_dtlk.h b/drivers/accessibility/speakup/speakup_dtlk.h
index 9c378b58066e..101848edec2e 100644
--- a/drivers/accessibility/speakup/speakup_dtlk.h
+++ b/drivers/accessibility/speakup/speakup_dtlk.h
@@ -1,5 +1,7 @@
 /* SPDX-License-Identifier: GPL-2.0 */
 /* speakup_dtlk.h - header file for speakups DoubleTalk driver. */
+#ifndef _SPEAKUP_DTLK_H
+#define _SPEAKUP_DTLK_H
 
 #define SYNTH_IO_EXTENT	0x02
 #define SYNTH_CLEAR	0x18		/* stops speech */
@@ -61,3 +63,4 @@ struct synth_settings {
 				 */
 	u_char has_indexing;	/* nonzero if indexing is implemented */
 };
+#endif
-- 
2.18.2
Re: [PATCH] accessibility/speakup/speakup_dtlk: Add header file macro definition
Posted by Samuel Thibault 3 years, 9 months ago
Li zeming, le mer. 06 juil. 2022 09:04:30 +0800, a ecrit:
> Add header file macro definition.
> 
> Signed-off-by: Li zeming <zeming@nfschina.com>

Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>

> ---
>  drivers/accessibility/speakup/speakup_dtlk.h | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/accessibility/speakup/speakup_dtlk.h b/drivers/accessibility/speakup/speakup_dtlk.h
> index 9c378b58066e..101848edec2e 100644
> --- a/drivers/accessibility/speakup/speakup_dtlk.h
> +++ b/drivers/accessibility/speakup/speakup_dtlk.h
> @@ -1,5 +1,7 @@
>  /* SPDX-License-Identifier: GPL-2.0 */
>  /* speakup_dtlk.h - header file for speakups DoubleTalk driver. */
> +#ifndef _SPEAKUP_DTLK_H
> +#define _SPEAKUP_DTLK_H
>  
>  #define SYNTH_IO_EXTENT	0x02
>  #define SYNTH_CLEAR	0x18		/* stops speech */
> @@ -61,3 +63,4 @@ struct synth_settings {
>  				 */
>  	u_char has_indexing;	/* nonzero if indexing is implemented */
>  };
> +#endif
> -- 
> 2.18.2
> 

-- 
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.