wacom: Replace ifdefs with #pragma once

This commit is contained in:
Robert Ancell 2019-11-21 20:42:30 +13:00 committed by Georges Basile Stavracas Neto
parent 667fe61e78
commit 34cb560009
2 changed files with 9 additions and 6 deletions

View file

@ -21,11 +21,12 @@
* THE SOFTWARE.
*/
#ifndef __CALIBRATOR_GUI_H__
#define __CALIBRATOR_GUI_H__
#pragma once
#include <gtk/gtk.h>
G_BEGIN_DECLS
/* struct to hold min/max info of the X and Y axis */
typedef struct
{
@ -60,4 +61,5 @@ void calib_area_get_axis (CalibArea *area,
void calib_area_get_padding (CalibArea *area,
XYinfo *padding);
#endif /* __CALIBRATOR_GUI_H__ */
G_END_DECLS

View file

@ -21,12 +21,13 @@
* THE SOFTWARE.
*/
#ifndef _calibrator_h
#define _calibrator_h
#pragma once
#include <glib.h>
#include "calibrator-gui.h"
G_BEGIN_DECLS
/*
* Number of blocks. We partition the screen into 'num_blocks' x 'num_blocks'
* rectangles of equal size. We then ask the user to press points that are
@ -95,4 +96,4 @@ gboolean finish (struct Calib *c,
XYinfo *new_axis,
gboolean *swap);
#endif /* _calibrator_h */
G_END_DECLS