1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-09-30 05:59:07 +00:00

some relocation of header includes

* conky.h must come first, because it includes config.h
  which again defines _GNU_SOURCE, which is necessary
  for strdup() & Co.
* declaring cpu_separate in top.h makes no sense, as it
  includes conky.h which declares cpu_separate itself


git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1078 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Phil 2008-03-29 12:44:29 +00:00
parent a8bb0d7052
commit 00eb4ec9af
6 changed files with 7 additions and 13 deletions

View File

@ -27,8 +27,8 @@
* $Id$
*/
#include <limits.h>
#include "conky.h"
#include <limits.h>
static struct diskio_stat diskio_stats_[MAX_DISKIO_STATS];
struct diskio_stat *diskio_stats = diskio_stats_;

View File

@ -29,6 +29,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
#include "conky.h"
#include "libmpdclient.h"
#include <errno.h>

View File

@ -25,14 +25,13 @@
*
* $Id$ */
#include "conky.h"
#include <sys/ioctl.h>
#include <errno.h>
#include <fcntl.h>
#include <string.h>
#include <stdlib.h>
#include "conky.h"
#ifdef HAVE_LINUX_SOUNDCARD_H
#include <linux/soundcard.h>

View File

@ -15,13 +15,13 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
#include "config.h"
#include "prss.h"
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "prss.h"
#include "config.h"
#ifndef PARSE_OPTIONS
#define PARSE_OPTIONS 0

View File

@ -25,15 +25,15 @@
*
* $Id$ */
#include "conky.h"
#include "prss.h"
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <assert.h>
#include "prss.h"
#include <curl/curl.h>
#include <curl/types.h>
#include <curl/easy.h>
#include "conky.h"
#define MAX_FEEDS 16

View File

@ -73,12 +73,6 @@
#define PROCFS_CMDLINE_TEMPLATE "/proc/%d/cmdline"
#define MAX_SP 10 // number of elements to sort
/******************************************
* Globals *
******************************************/
extern int cpu_separate;
/******************************************
* Process class *
******************************************/