* cygprops.h: Use #pragma once.

* mkglobals_h: Ditto for generated globals.h file.
* globals.cc: Use specific NO_GLOBALS_H flag to control inclusion of globals.h.
* winsup.h: Honor NO_GLOBALS_H to control inclusion of globals.h.  Make
clear_procimptoken extern inline so that it is only defined when needed.
This commit is contained in:
Christopher Faylor
2012-03-19 17:49:40 +00:00
parent 548dc6a14d
commit 374d215cca
5 changed files with 33 additions and 22 deletions

View File

@@ -9,7 +9,7 @@ This software is a copyrighted work licensed under the terms of the
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
details. */
#define _GLOBALS_H 1
#define NO_GLOBALS_H
#include "winsup.h"
#include "cygtls.h"
#include "perprocess.h"
@@ -31,20 +31,20 @@ UINT system_wow64_directory_length;
/* program exit the program */
enum exit_states
{
ES_NOT_EXITING = 0,
ES_EXIT_STARTING,
ES_PROCESS_LOCKED,
ES_EVENTS_TERMINATE,
ES_SIGNAL,
ES_CLOSEALL,
ES_THREADTERM,
ES_HUP_PGRP,
ES_HUP_SID,
ES_EXEC_EXIT,
ES_TTY_TERMINATE,
ES_FINAL
};
{
ES_NOT_EXITING = 0,
ES_EXIT_STARTING,
ES_PROCESS_LOCKED,
ES_EVENTS_TERMINATE,
ES_SIGNAL,
ES_CLOSEALL,
ES_THREADTERM,
ES_HUP_PGRP,
ES_HUP_SID,
ES_EXEC_EXIT,
ES_TTY_TERMINATE,
ES_FINAL
};
exit_states NO_COPY exit_state;