Fix #22: remove initial underscore from include guards
This commit is contained in:
+3
-3
@@ -17,12 +17,12 @@
|
||||
Copyright (c) 2010 Jon Lund Steffensen <jonlst@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef _REDSHIFT_COLORRAMP_H
|
||||
#define _REDSHIFT_COLORRAMP_H
|
||||
#ifndef REDSHIFT_COLORRAMP_H
|
||||
#define REDSHIFT_COLORRAMP_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
void colorramp_fill(uint16_t *gamma_r, uint16_t *gamma_g, uint16_t *gamma_b,
|
||||
int size, int temp, float brightness, const float gamma[3]);
|
||||
|
||||
#endif /* ! _REDSHIFT_COLORRAMP_H */
|
||||
#endif /* ! REDSHIFT_COLORRAMP_H */
|
||||
|
||||
+3
-3
@@ -17,8 +17,8 @@
|
||||
Copyright (c) 2010 Jon Lund Steffensen <jonlst@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef _REDSHIFT_CONFIG_INI_H
|
||||
#define _REDSHIFT_CONFIG_INI_H
|
||||
#ifndef REDSHIFT_CONFIG_INI_H
|
||||
#define REDSHIFT_CONFIG_INI_H
|
||||
|
||||
typedef struct _config_ini_section config_ini_section_t;
|
||||
typedef struct _config_ini_setting config_ini_setting_t;
|
||||
@@ -46,4 +46,4 @@ void config_ini_free(config_ini_state_t *state);
|
||||
config_ini_section_t *config_ini_get_section(config_ini_state_t *state,
|
||||
const char *name);
|
||||
|
||||
#endif /* ! _REDSHIFT_CONFIG_INI_H */
|
||||
#endif /* ! REDSHIFT_CONFIG_INI_H */
|
||||
|
||||
+3
-3
@@ -17,8 +17,8 @@
|
||||
Copyright (c) 2014 Mattias Andrée <maandree@member.fsf.org>
|
||||
*/
|
||||
|
||||
#ifndef _REDSHIFT_GAMMA_DRM_H
|
||||
#define _REDSHIFT_GAMMA_DRM_H
|
||||
#ifndef REDSHIFT_GAMMA_DRM_H
|
||||
#define REDSHIFT_GAMMA_DRM_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -55,4 +55,4 @@ void drm_restore(drm_state_t *state);
|
||||
int drm_set_temperature(drm_state_t *state, int temp, float brightness, const float gamma[3]);
|
||||
|
||||
|
||||
#endif /* ! _REDSHIFT_GAMMA_DRM_H */
|
||||
#endif /* ! REDSHIFT_GAMMA_DRM_H */
|
||||
|
||||
+3
-3
@@ -17,8 +17,8 @@
|
||||
Copyright (c) 2013 Jon Lund Steffensen <jonlst@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef _REDSHIFT_GAMMA_DUMMY_H
|
||||
#define _REDSHIFT_GAMMA_DUMMY_H
|
||||
#ifndef REDSHIFT_GAMMA_DUMMY_H
|
||||
#define REDSHIFT_GAMMA_DUMMY_H
|
||||
|
||||
#include "redshift.h"
|
||||
|
||||
@@ -35,4 +35,4 @@ int gamma_dummy_set_temperature(void *state, int temp, float brightness,
|
||||
const float gamma[3]);
|
||||
|
||||
|
||||
#endif /* ! _REDSHIFT_GAMMA_DUMMY_H */
|
||||
#endif /* ! REDSHIFT_GAMMA_DUMMY_H */
|
||||
|
||||
+3
-3
@@ -17,8 +17,8 @@
|
||||
Copyright (c) 2010 Jon Lund Steffensen <jonlst@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef _REDSHIFT_GAMMA_RANDR_H
|
||||
#define _REDSHIFT_GAMMA_RANDR_H
|
||||
#ifndef REDSHIFT_GAMMA_RANDR_H
|
||||
#define REDSHIFT_GAMMA_RANDR_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
@@ -58,4 +58,4 @@ int randr_set_temperature(randr_state_t *state, int temp, float brightness,
|
||||
const float gamma[3]);
|
||||
|
||||
|
||||
#endif /* ! _REDSHIFT_GAMMA_RANDR_H */
|
||||
#endif /* ! REDSHIFT_GAMMA_RANDR_H */
|
||||
|
||||
+3
-3
@@ -17,8 +17,8 @@
|
||||
Copyright (c) 2010 Jon Lund Steffensen <jonlst@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef _REDSHIFT_GAMMA_VIDMODE_H
|
||||
#define _REDSHIFT_GAMMA_VIDMODE_H
|
||||
#ifndef REDSHIFT_GAMMA_VIDMODE_H
|
||||
#define REDSHIFT_GAMMA_VIDMODE_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
@@ -46,4 +46,4 @@ int vidmode_set_temperature(vidmode_state_t *state, int temp, float brightness,
|
||||
const float gamma[3]);
|
||||
|
||||
|
||||
#endif /* ! _REDSHIFT_GAMMA_VIDMODE_H */
|
||||
#endif /* ! REDSHIFT_GAMMA_VIDMODE_H */
|
||||
|
||||
+3
-3
@@ -17,8 +17,8 @@
|
||||
Copyright (c) 2010 Jon Lund Steffensen <jonlst@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef _REDSHIFT_GAMMA_W32GDI_H
|
||||
#define _REDSHIFT_GAMMA_W32GDI_H
|
||||
#ifndef REDSHIFT_GAMMA_W32GDI_H
|
||||
#define REDSHIFT_GAMMA_W32GDI_H
|
||||
|
||||
#include <windows.h>
|
||||
#include <wingdi.h>
|
||||
@@ -42,4 +42,4 @@ int w32gdi_set_temperature(w32gdi_state_t *state, int temp, float brightness,
|
||||
const float gamma[3]);
|
||||
|
||||
|
||||
#endif /* ! _REDSHIFT_GAMMA_W32GDI_H */
|
||||
#endif /* ! REDSHIFT_GAMMA_W32GDI_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
Copyright (c) 2010 Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com>
|
||||
*/
|
||||
|
||||
#ifndef _REDSHIFT_LOCATION_GEOCLUE_H
|
||||
#define _REDSHIFT_LOCATION_GEOCLUE_H
|
||||
#ifndef REDSHIFT_LOCATION_GEOCLUE_H
|
||||
#define REDSHIFT_LOCATION_GEOCLUE_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <geoclue/geoclue-position.h>
|
||||
@@ -41,4 +41,4 @@ int location_geoclue_get_location(location_geoclue_state_t *state,
|
||||
float *lat, float *lon);
|
||||
|
||||
|
||||
#endif /* ! _REDSHIFT_LOCATION_GEOCLUE_H */
|
||||
#endif /* ! REDSHIFT_LOCATION_GEOCLUE_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
Copyright (c) 2010 Jon Lund Steffensen <jonlst@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef _REDSHIFT_LOCATION_MANUAL_H
|
||||
#define _REDSHIFT_LOCATION_MANUAL_H
|
||||
#ifndef REDSHIFT_LOCATION_MANUAL_H
|
||||
#define REDSHIFT_LOCATION_MANUAL_H
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -41,4 +41,4 @@ int location_manual_get_location(location_manual_state_t *state, float *lat,
|
||||
float *lon);
|
||||
|
||||
|
||||
#endif /* ! _REDSHIFT_LOCATION_MANUAL_H */
|
||||
#endif /* ! REDSHIFT_LOCATION_MANUAL_H */
|
||||
|
||||
+3
-3
@@ -17,8 +17,8 @@
|
||||
Copyright (c) 2013 Jon Lund Steffensen <jonlst@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef _REDSHIFT_REDSHIFT_H
|
||||
#define _REDSHIFT_REDSHIFT_H
|
||||
#ifndef REDSHIFT_REDSHIFT_H
|
||||
#define REDSHIFT_REDSHIFT_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@@ -91,4 +91,4 @@ typedef struct {
|
||||
} location_provider_t;
|
||||
|
||||
|
||||
#endif /* ! _REDSHIFT_REDSHIFT_H */
|
||||
#endif /* ! REDSHIFT_REDSHIFT_H */
|
||||
|
||||
+3
-3
@@ -17,8 +17,8 @@
|
||||
Copyright (c) 2010 Jon Lund Steffensen <jonlst@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef _SOLAR_H
|
||||
#define _SOLAR_H
|
||||
#ifndef REDSHIFT_SOLAR_H
|
||||
#define REDSHIFT_SOLAR_H
|
||||
|
||||
#include "time.h"
|
||||
|
||||
@@ -48,4 +48,4 @@ typedef enum {
|
||||
double solar_elevation(double date, double lat, double lon);
|
||||
void solar_table_fill(double date, double lat, double lon, double *table);
|
||||
|
||||
#endif /* ! _SOLAR_H */
|
||||
#endif /* ! REDSHIFT_SOLAR_H */
|
||||
|
||||
+3
-3
@@ -17,8 +17,8 @@
|
||||
Copyright (c) 2010 Jon Lund Steffensen <jonlst@gmail.com>
|
||||
*/
|
||||
|
||||
#ifndef _REDSHIFT_SYSTEMTIME_H
|
||||
#define _REDSHIFT_SYSTEMTIME_H
|
||||
#ifndef REDSHIFT_SYSTEMTIME_H
|
||||
#define REDSHIFT_SYSTEMTIME_H
|
||||
|
||||
#ifndef _WIN32
|
||||
# include <time.h>
|
||||
@@ -29,4 +29,4 @@
|
||||
|
||||
int systemtime_get_time(double *now);
|
||||
|
||||
#endif /* ! _REDSHIFT_SYSTEMTIME_H */
|
||||
#endif /* ! REDSHIFT_SYSTEMTIME_H */
|
||||
|
||||
Reference in New Issue
Block a user