AP_Menu: replace header guard with pragma once

This commit is contained in:
Lucas De Marchi 2016-02-17 23:25:35 -02:00 committed by Andrew Tridgell
parent 382b6f87fe
commit 9c4f93244e
1 changed files with 1 additions and 5 deletions

View File

@ -12,9 +12,7 @@
///
/// Arguments passed to the handler function are pre-converted to both
/// long and float for convenience.
#ifndef __AP_MENU_H__
#define __AP_MENU_H__
#pragma once
#include <inttypes.h>
#include <AP_HAL/AP_HAL.h>
@ -173,5 +171,3 @@ private:
#define MENU2(name, prompt, commands, preprompt) \
static const char __menu_name__ ## name[] = prompt; \
static Menu name(__menu_name__ ## name, commands, ARRAY_SIZE(commands), preprompt)
#endif // __AP_COMMON_MENU_H__