Skip to content

Commit

Permalink
Add stdint defines if we dont have stdint.h
Browse files Browse the repository at this point in the history
  • Loading branch information
alesliehughes committed Jun 23, 2010
1 parent b899330 commit e5e2617
Show file tree
Hide file tree
Showing 43 changed files with 316 additions and 223 deletions.
5 changes: 0 additions & 5 deletions drqman/drqm_autorefresh.c
Expand Up @@ -19,11 +19,6 @@
// USA
//

#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <pwd.h>
#include <sys/types.h>
#include <gtk/gtk.h>

#include "drqm_autorefresh.h"
Expand Down
9 changes: 4 additions & 5 deletions drqman/drqm_computers.c
Expand Up @@ -20,12 +20,11 @@
// USA
//

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
#ifdef HAVE_STDINT_H
#include <stdint.h>
#include <stdarg.h>
#endif

#include "constants.h"

#include "drqman.h"
#include "drqm_request.h"
Expand Down
6 changes: 0 additions & 6 deletions drqman/drqm_info.c
Expand Up @@ -19,12 +19,6 @@
// USA
//

#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <pwd.h>
#include <sys/types.h>

#include "drqman.h"
#include "drqm_common.h"

Expand Down
9 changes: 4 additions & 5 deletions drqman/drqm_jobs.c
Expand Up @@ -20,12 +20,11 @@
// USA
//

#include <string.h>
#include <stdlib.h>
#include <pwd.h>
#include <sys/types.h>
#include <stdint.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/types.h>
#include <pwd.h>

#include "libdrqueue.h"

Expand Down
10 changes: 2 additions & 8 deletions drqman/drqm_jobs_aqsis.c
Expand Up @@ -19,16 +19,10 @@
// USA
//

#ifdef HAVE_CONFIG_H
# include <lconfig.h>
#endif

#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#include <stdlib.h>
#endif
#include <pwd.h>
#include <sys/stat.h>
#include <sys/types.h>

#include "aqsissg.h"
#include "drqm_jobs.h"
Expand Down
6 changes: 0 additions & 6 deletions drqman/drqm_jobs_blender.c
Expand Up @@ -19,12 +19,6 @@
// USA
//

#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <pwd.h>
#include <sys/types.h>

#include "drqm_jobs.h"
#include "drqm_common.h"
#include "drqm_jobs_blender.h"
Expand Down
15 changes: 11 additions & 4 deletions drqman/drqm_jobs_jdd.c
Expand Up @@ -20,12 +20,19 @@
// USA
//

#include <stdlib.h>
#include <string.h>
#include <stdio.h>

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_STDINT_H
#include <stdint.h>
#include <sys/types.h>
#include <stdio.h>
#endif
#ifdef _WIN32
#include <io.h>
#endif

#include "constants.h"

// Graphics
#include "waiting.xpm"
Expand Down
6 changes: 3 additions & 3 deletions drqman/drqm_jobs_lightwave.c
Expand Up @@ -19,12 +19,12 @@
// USA
//

#include <string.h>
#include <stdio.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#include <stdlib.h>
#endif
#include <pwd.h>
#include <sys/stat.h>
#include <sys/types.h>

#include "drqm_jobs.h"
#include "drqm_common.h"
Expand Down
6 changes: 0 additions & 6 deletions drqman/drqm_jobs_luxrender.c
Expand Up @@ -19,12 +19,6 @@
// USA
//

#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <pwd.h>
#include <sys/types.h>

#include "drqm_jobs.h"
#include "drqm_common.h"
#include "drqm_jobs_luxrender.h"
Expand Down
10 changes: 3 additions & 7 deletions drqman/drqm_jobs_mantra.c
Expand Up @@ -19,16 +19,12 @@
// USA
//

#ifdef HAVE_CONFIG_H
# include <lconfig.h>
#endif

#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#include <stdlib.h>
#endif
#include <pwd.h>
#include <sys/stat.h>
#include <sys/types.h>


#include "mantrasg.h"
#include "drqm_jobs.h"
Expand Down
7 changes: 3 additions & 4 deletions drqman/drqm_jobs_maya.c
Expand Up @@ -19,12 +19,11 @@
// USA
//

#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#include <stdlib.h>
#endif
#include <pwd.h>
#include <sys/stat.h>
#include <sys/types.h>

#include "drqm_jobs.h"
#include "drqm_common.h"
Expand Down Expand Up @@ -520,4 +519,4 @@ dnj_koj_frame_maya_toggle_button(GtkWidget *button, struct drqmj_koji_maya *info
}
}



5 changes: 2 additions & 3 deletions drqman/drqm_jobs_mentalray.c
Expand Up @@ -19,12 +19,11 @@
// USA
//

#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#include <stdlib.h>
#endif
#include <pwd.h>
#include <sys/stat.h>
#include <sys/types.h>

#include "drqm_jobs.h"
#include "drqm_common.h"
Expand Down
5 changes: 2 additions & 3 deletions drqman/drqm_jobs_nuke.c
Expand Up @@ -19,12 +19,11 @@
// USA
//

#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#include <stdlib.h>
#endif
#include <pwd.h>
#include <sys/stat.h>
#include <sys/types.h>

#include "drqm_jobs.h"
#include "drqm_common.h"
Expand Down
6 changes: 0 additions & 6 deletions drqman/drqm_jobs_pixie.c
Expand Up @@ -19,12 +19,6 @@
// USA
//

#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <pwd.h>
#include <sys/types.h>

#include "drqm_jobs.h"
#include "drqm_common.h"
#include "drqm_jobs_pixie.h"
Expand Down
6 changes: 0 additions & 6 deletions drqman/drqm_jobs_shake.c
Expand Up @@ -19,12 +19,6 @@
// USA
//

#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <pwd.h>
#include <sys/types.h>

#include "drqm_jobs.h"
#include "drqm_common.h"
#include "drqm_jobs_shake.h"
Expand Down
5 changes: 2 additions & 3 deletions drqman/drqm_jobs_turtle.c
Expand Up @@ -19,12 +19,11 @@
// USA
//

#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#include <stdlib.h>
#endif
#include <pwd.h>
#include <sys/stat.h>
#include <sys/types.h>

#include "drqm_jobs.h"
#include "drqm_common.h"
Expand Down
5 changes: 2 additions & 3 deletions drqman/drqm_jobs_xsi.c
Expand Up @@ -19,12 +19,11 @@
// USA
//

#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#include <stdlib.h>
#endif
#include <pwd.h>
#include <sys/stat.h>
#include <sys/types.h>

#include "drqm_jobs.h"
#include "drqm_common.h"
Expand Down
9 changes: 0 additions & 9 deletions drqman/drqm_request.c
Expand Up @@ -20,19 +20,10 @@
// USA
//

#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
#include <sys/types.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>

#include "libdrqueue.h"
#include "drqm_jobs.h"
#include "drqm_computers.h"
#include "drqm_request.h"
#include "logger.h"

void
drqm_request_joblist (struct drqm_jobs_info *info) {
Expand Down
13 changes: 2 additions & 11 deletions drqman/main.c
Expand Up @@ -19,18 +19,9 @@
// USA
//

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#include <stdio.h>
#include <signal.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/sem.h>
#include <errno.h>
#include <sys/wait.h>
#include <stdlib.h>
#include <sys/types.h>
#include <string.h>
#include <ctype.h>
#endif

#include "drqman.h"
#include "drqm_common.h"
Expand Down
24 changes: 5 additions & 19 deletions libdrqueue/aqsissg.h
Expand Up @@ -23,26 +23,12 @@
#ifndef _AQSISSG_H_
#define _AQSISSG_H_

#ifdef __LINUX
#ifdef HAVE_STDINT_H
#include <stdint.h>
#else
# ifdef __IRIX
# include <sys/types.h>
# else
# ifdef __OSX
# include <stdint.h>
# else
# ifdef __FREEBSD
# include <stdint.h>
# else
# ifdef __CYGWIN
# include <stdint.h>
# else
# error You need to define the OS, or OS defined not supported
# endif
# endif
# endif
# endif
#endif

#ifdef __IRIX
#include <sys/types.h>
#endif

#include "constants.h"
Expand Down
5 changes: 4 additions & 1 deletion libdrqueue/blendersg.h
Expand Up @@ -23,8 +23,11 @@
#ifndef _BLENDERSG_H_
#define _BLENDERSG_H_

#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif

#include "constants.h"
#include "stdint.h"

#ifdef __cplusplus
extern "C" {
Expand Down
11 changes: 1 addition & 10 deletions libdrqueue/computer_status.c
Expand Up @@ -28,19 +28,10 @@
#include <unistd.h>
#endif

#if defined(__LINUX)
# include <stdint.h>
#elif defined(__IRIX)
# include <sys/types.h>
#if defined(__IRIX)
# include <sys/sysget.h>
#elif defined(__OSX)
# include <stdint.h>
# include <string.h>
#elif defined(__FREEBSD)
# include <stdint.h>
#elif defined(__CYGWIN)
#else
# error You need to define the OS, or OS defined not supported
#endif

#include "computer_status.h"
Expand Down
9 changes: 6 additions & 3 deletions libdrqueue/computer_status.h
Expand Up @@ -22,12 +22,15 @@
#ifndef _COMPUTER_STATUS_H_
#define _COMPUTER_STATUS_H_

#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif

#include <sys/types.h>

#include "constants.h"
#include "task.h"

#include <time.h>
#include <sys/types.h>
#include <stdint.h>

#pragma pack(push,1)

Expand Down

0 comments on commit e5e2617

Please sign in to comment.