Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit 5154322

Browse files
committed
Merge pull request #497 from hppritcha/topic/cherry_pick_4d92c998
more c99 updates
2 parents 2d523ab + b1b1013 commit 5154322

File tree

237 files changed

+15
-819
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

237 files changed

+15
-819
lines changed

configure.ac

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -592,18 +592,17 @@ AC_CACHE_SAVE
592592
opal_show_title "Header file tests"
593593

594594
AC_CHECK_HEADERS([alloca.h aio.h arpa/inet.h dirent.h \
595-
dlfcn.h execinfo.h err.h fcntl.h grp.h inttypes.h libgen.h \
595+
dlfcn.h execinfo.h err.h fcntl.h grp.h libgen.h \
596596
libutil.h memory.h netdb.h netinet/in.h netinet/tcp.h \
597-
poll.h pthread.h pty.h pwd.h sched.h stdint.h stddef.h \
598-
stdlib.h string.h strings.h stropts.h sys/fcntl.h sys/ipc.h sys/shm.h \
597+
poll.h pthread.h pty.h pwd.h sched.h \
598+
strings.h stropts.h sys/fcntl.h sys/ipc.h sys/shm.h \
599599
sys/ioctl.h sys/mman.h sys/param.h sys/queue.h \
600600
sys/resource.h sys/select.h sys/socket.h sys/sockio.h \
601-
stdarg.h sys/stat.h sys/statfs.h sys/statvfs.h sys/time.h sys/tree.h \
601+
sys/stat.h sys/statfs.h sys/statvfs.h sys/time.h sys/tree.h \
602602
sys/types.h sys/uio.h sys/un.h net/uio.h sys/utsname.h sys/vfs.h sys/wait.h syslog.h \
603-
time.h termios.h ulimit.h unistd.h util.h utmp.h malloc.h \
604-
ifaddrs.h crt_externs.h regex.h signal.h \
605-
mntent.h paths.h \
606-
ioLib.h sockLib.h hostLib.h shlwapi.h sys/synch.h limits.h db.h ndbm.h])
603+
termios.h ulimit.h unistd.h util.h utmp.h malloc.h \
604+
ifaddrs.h crt_externs.h regex.h mntent.h paths.h \
605+
ioLib.h sockLib.h hostLib.h shlwapi.h sys/synch.h db.h ndbm.h])
607606

608607
AC_CHECK_HEADERS([sys/mount.h], [], [],
609608
[AC_INCLUDES_DEFAULT

ompi/attribute/attribute_predefined.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@
8181

8282
#include "ompi_config.h"
8383

84-
#ifdef HAVE_STDLIB_H
8584
#include <stdlib.h>
86-
#endif
8785

8886
#include "mpi.h"
8987

ompi/datatype/ompi_datatype.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,9 @@
2828
#include "ompi_config.h"
2929

3030
#include <stddef.h>
31-
#ifdef HAVE_STDINT_H
3231
#include <stdint.h>
33-
#endif
34-
#ifdef HAVE_STRING_H
3532
#include <string.h>
36-
#endif
37-
#ifdef HAVE_LIMITS_H
3833
#include <limits.h>
39-
#endif
4034

4135
#include "ompi/constants.h"
4236
#include "opal/datatype/opal_convertor.h"

ompi/datatype/ompi_datatype_create.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
#include "ompi_config.h"
2121

2222
#include <stddef.h>
23-
#ifdef HAVE_STRING_H
2423
#include <string.h>
25-
#endif
2624

2725
#include "opal/class/opal_pointer_array.h"
2826
#include "ompi/datatype/ompi_datatype.h"

ompi/debuggers/ompi_mpihandles_dll.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,8 @@
3636

3737
#include "ompi_config.h"
3838

39-
#if defined(HAVE_STRING_H)
4039
#include <string.h>
41-
#endif /* defined(HAVE_STRING_H) */
42-
#if defined(HAVE_STDLIB_H)
4340
#include <stdlib.h>
44-
#endif /* defined(HAVE_STDLIB_H) */
4541

4642
#include "ompi/mca/pml/base/pml_base_request.h"
4743
#include "mpihandles_interface.h"

ompi/debuggers/ompi_msgq_dll.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,8 @@
7171
#ifdef HAVE_NO_C_CONST
7272
#define const
7373
#endif
74-
#if defined(HAVE_STRING_H)
7574
#include <string.h>
76-
#endif /* defined(HAVE_STRING_H) */
77-
#if defined(HAVE_STDLIB_H)
7875
#include <stdlib.h>
79-
#endif /* defined(HAVE_STDLIB_H) */
8076

8177
/* Notice to developers!!!!
8278
* The following include files with _dbg.h suffixes contains definitions

ompi/errhandler/errcode.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@
2626
#include "ompi_config.h"
2727

2828
#include <stdio.h>
29-
#ifdef HAVE_STRING_H
3029
#include <string.h>
31-
#endif
3230

3331
#include "mpi.h"
3432

ompi/errhandler/errhandler.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@
2323

2424
#include "ompi_config.h"
2525

26-
#ifdef HAVE_STRING_H
2726
#include <string.h>
28-
#endif
2927

3028
#include "ompi/communicator/communicator.h"
3129
#include "ompi/win/win.h"

ompi/info/info.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,9 @@
2626
#include "ompi_config.h"
2727
#include "ompi/constants.h"
2828

29-
#ifdef HAVE_STRING_H
3029
#include <string.h>
31-
#endif
3230
#include <errno.h>
33-
#ifdef HAVE_STDLIB_H
3431
#include <stdlib.h>
35-
#endif
3632
#ifdef HAVE_UNISTD_H
3733
#include <unistd.h>
3834
#endif

ompi/mca/coll/cuda/coll_cuda_module.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212

1313
#include "ompi_config.h"
1414

15-
#ifdef HAVE_STRING_H
1615
#include <string.h>
17-
#endif
1816
#include <stdio.h>
1917

2018
#include "coll_cuda.h"

0 commit comments

Comments
 (0)