Add guard to prevent eekboard/eekboard-*.h from being included directly.

This commit is contained in:
Daiki Ueno
2011-04-28 16:47:35 +09:00
parent 1e9ec77b65
commit bd303ef10b
4 changed files with 13 additions and 1 deletions

View File

@ -15,6 +15,11 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#if !defined(__EEKBOARD_H_INSIDE__) && !defined(EEKBOARD_COMPILATION)
#error "Only <eekboard/eekboard.h> can be included directly."
#endif
#ifndef EEKBOARD_CONTEXT_H
#define EEKBOARD_CONTEXT_H 1