瀏覽代碼

hypervisor: Add multiple-inclusion guard.

Ludovic Courtès 12 年之前
父節點
當前提交
b4ea0bd6ae
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      sched_ctx_hypervisor/include/sched_ctx_hypervisor.h

+ 5 - 0
sched_ctx_hypervisor/include/sched_ctx_hypervisor.h

@@ -14,6 +14,9 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
+#ifndef STARPU_SCHED_CTX_HYPERVISOR_H
+#define STARPU_SCHED_CTX_HYPERVISOR_H
+
 #include <starpu.h>
 #include <pthread.h>
 
@@ -162,3 +165,5 @@ void sched_ctx_hypervisor_save_size_req(int *sched_ctxs, int nsched_ctxs, int *w
 void sched_ctx_hypervisor_free_size_req(void);
 
 unsigned sched_ctx_hypervisor_can_resize(unsigned sched_ctx);
+
+#endif