Skip to content

Commit 49c1b76

Browse files
committed
include guard
1 parent 542e3f9 commit 49c1b76

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

c-lib/pycoram.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef PYCORAM_H
2+
#define PYCORAM_H
3+
14
#define UIO_PYCORAM "/dev/uio1"
25
#define PYCORAM_SIZE (0x00001000)
36

@@ -37,3 +40,4 @@ void pycoram_close()
3740
munmap((void*) pycoram_ptr, PYCORAM_SIZE);
3841
}
3942

43+
#endif

c-lib/umem.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef UMEM_H
2+
#define UMEM_H
3+
14
#define UIO_MEM "/dev/uio0"
25
// ZedBoard (DRAM 512 MB)
36
#define UMEM_SIZE (0x10000000)
@@ -73,3 +76,4 @@ void umem_close()
7376
umem_ptr = NULL;
7477
}
7578

79+
#endif

0 commit comments

Comments
 (0)