Skip to content

Commit

Permalink
Fix incorrect/inconsistant/duplicate header file defines
Browse files Browse the repository at this point in the history
Standardise to platform_filename_h

Signed-off-by: Paul Jones <[email protected]>
  • Loading branch information
PeeJay committed Oct 16, 2017
1 parent 5d826b0 commit 2d0d46f
Show file tree
Hide file tree
Showing 15 changed files with 30 additions and 30 deletions.
4 changes: 2 additions & 2 deletions linux/mjpeghelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
*/

#ifndef mjpeghelper_h
#define mjpeghelper_h
#ifndef linux_mjpeghelper_h
#define linux_mjpeghelper_h

#include <turbojpeg.h>
#include <stdint.h>
Expand Down
4 changes: 2 additions & 2 deletions linux/platformcontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
*/

#ifndef openpnp_win32platformcontext_h
#define openpnp_win32platformcontext_h
#ifndef linux_platformcontext_h
#define linux_platformcontext_h

#define _CRT_SECURE_NO_WARNINGS

Expand Down
4 changes: 2 additions & 2 deletions linux/platformdeviceinfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef platformdeviceinfo_h
#define platformdeviceinfo_h
#ifndef linux_platformdeviceinfo_h
#define linux_platformdeviceinfo_h

#include <linux/videodev2.h>
#include <string>
Expand Down
4 changes: 2 additions & 2 deletions linux/platformstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
*/

#ifndef win32platform_stream_h
#define win32platform_stream_h
#ifndef linux_platformstream_h
#define linux_platformstream_h

#include <stdint.h>
#include <vector>
Expand Down
4 changes: 2 additions & 2 deletions linux/scopedptr.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
*/

#ifndef scopedptr_h
#define scopedptr_h
#ifndef linux_scopedptr_h
#define linux_scopedptr_h

/** The ScopedPtr takes a pointer to a generic object and will
delete/destroy the object when the owning ScopedComPtr is
Expand Down
4 changes: 2 additions & 2 deletions linux/yuvconverters.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
*/

#ifndef yuvconverters_h
#define yuvconverters_h
#ifndef linux_yuvconverters_h
#define linux_yuvconverters_h

#include <stdint.h>

Expand Down
4 changes: 2 additions & 2 deletions mac/platformcontext.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef openpnp_macplatformcontext_h
#define openpnp_macplatformcontext_h
#ifndef mac_platformcontext_h
#define mac_platformcontext_h

#include "openpnp-capture.h"

Expand Down
4 changes: 2 additions & 2 deletions mac/platformdeviceinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
*/

#ifndef platformdeviceinfo_h
#define platformdeviceinfo_h
#ifndef mac_platformdeviceinfo_h
#define mac_platformdeviceinfo_h

#include <string>
#include <vector>
Expand Down
4 changes: 2 additions & 2 deletions mac/platformstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
*/

#ifndef macplatform_stream_h
#define macplatform_stream_h
#ifndef mac_platformstream_h
#define mac_platformstream_h

#include <stdint.h>
#include "../common/logging.h"
Expand Down
4 changes: 2 additions & 2 deletions mac/uvcctrl.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
*/

#ifndef uvcctrl_h
#define uvcctrl_h
#ifndef mac_uvcctrl_h
#define mac_uvcctrl_h

#import <CoreFoundation/CoreFoundation.h>

Expand Down
4 changes: 2 additions & 2 deletions win/platformcontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
*/

#ifndef openpnp_win32platformcontext_h
#define openpnp_win32platformcontext_h
#ifndef win_platformcontext_h
#define win_platformcontext_h

#include <vector>
#include <string>
Expand Down
4 changes: 2 additions & 2 deletions win/platformdeviceinfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef platformdeviceinfo_h
#define platformdeviceinfo_h
#ifndef win_platformdeviceinfo_h
#define win_platformdeviceinfo_h

#include <windows.h>
#include <Dshow.h>
Expand Down
4 changes: 2 additions & 2 deletions win/platformstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
*/

#ifndef win32platform_stream_h
#define win32platform_stream_h
#ifndef win_platformstream_h
#define win_platformstream_h

#include <windows.h>
#include <dshow.h>
Expand Down
4 changes: 2 additions & 2 deletions win/samplegrabber.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
///////////////////////////////////////////////////////////////////////////////////

#ifndef __qedit_h__
#define __qedit_h__
#ifndef win_samplegrabber_h
#define win_samplegrabber_h

///////////////////////////////////////////////////////////////////////////////////

Expand Down
4 changes: 2 additions & 2 deletions win/scopedcomptr.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
*/

#ifndef scopedcomptr_h
#define scopedcomptr_h
#ifndef win_scopedcomptr_h
#define win_scopedcomptr_h

/** The ScopedComPtr takes a pointer to a generic COM
interface object and will release the object when
Expand Down

0 comments on commit 2d0d46f

Please sign in to comment.