Skip to content

Commit

Permalink
change all include guards to #pragma once
Browse files Browse the repository at this point in the history
fix #4
  • Loading branch information
nanovna committed Apr 6, 2020
1 parent 1a91d03 commit e00fe71
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 19 deletions.
4 changes: 1 addition & 3 deletions libxavna/common_types.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifndef __COMMON_TYPES_H
#define __COMMON_TYPES_H
#pragma once


typedef unsigned long ul;
Expand All @@ -12,4 +11,3 @@ typedef uint16_t u16;
typedef uint8_t u8;
typedef int8_t s8;

#endif
6 changes: 3 additions & 3 deletions libxavna/include/calibration.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __XAVNA_CALIBRATION_H
#define __XAVNA_CALIBRATION_H
#pragma once

#include <array>
#include <complex>
#include <eigen3/Eigen/Dense>
Expand Down Expand Up @@ -133,4 +133,4 @@ inline complex<double> cascade_reflection(const array<complex<double>, 4>& S, co
return s11 + s12*s21*refl/(1.-s22*refl);
}

#endif

6 changes: 2 additions & 4 deletions libxavna/include/common.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __XAVNA_COMMON_H
#define __XAVNA_COMMON_H
#pragma once

#include <eigen3/Eigen/Dense>
#include <eigen3/Eigen/StdVector>
#include <vector>
Expand All @@ -25,5 +25,3 @@ inline Matrix2cd mirror(Matrix2cd a) {
}
}


#endif
6 changes: 3 additions & 3 deletions libxavna/include/xavna.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __XAVNA_H
#define __XAVNA_H
#pragma once

extern "C" {
struct autoSweepDataPoint {
// indexed by [port][real_or_imag]
Expand Down Expand Up @@ -60,4 +60,4 @@ extern "C" {
// close device handle
void xavna_close(void* dev);
}
#endif

5 changes: 2 additions & 3 deletions libxavna/include/xavna_cpp.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifndef __XAVNA_CPP_H
#define __XAVNA_CPP_H
#pragma once
#include <pthread.h>
#include <complex>
#include <vector>
Expand Down Expand Up @@ -107,4 +106,4 @@ namespace xaxaxa {
void* _runAutoSweep();
};
}
#endif

5 changes: 2 additions & 3 deletions vna_gtk/common_types.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef __COMMON_TYPES_H
#define __COMMON_TYPES_H
#pragma once

#include <stdint.h>

typedef unsigned long ul;
Expand All @@ -12,4 +12,3 @@ typedef uint16_t u16;
typedef uint8_t u8;
typedef int8_t s8;

#endif

0 comments on commit e00fe71

Please sign in to comment.