Skip to content

Commit

Permalink
Merge pull request #26 from jasper-software/lto-fix
Browse files Browse the repository at this point in the history
Fix build with link-time optimization
  • Loading branch information
mdadams authored Aug 12, 2024
2 parents 20ccd8f + c679fa8 commit 9b18a11
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 36 deletions.
1 change: 0 additions & 1 deletion src/xv.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#define MAIN
#define NEEDSTIME
#define NEEDSDIR /* for value of MAXPATHLEN */

#include "xv.h"

Expand Down
43 changes: 19 additions & 24 deletions src/xv.h
Original file line number Diff line number Diff line change
Expand Up @@ -299,31 +299,26 @@



#ifdef NEEDSDIR
# ifdef VMS
# include <descrip.h>
# include <stat.h>
# include "dirent.h"
#ifdef VMS
# include <descrip.h>
# include <stat.h>
# include "dirent.h"
#else
# ifdef NODIRENT
# include <sys/dir.h>
# else
# ifdef NODIRENT
# include <sys/dir.h>
# else
# include <dirent.h>
# endif

# if defined(SVR4) || defined(SYSV)
# include <fcntl.h>
# endif

# include <sys/param.h>
# include <sys/stat.h>

# if defined(__convex__) && defined (__STDC__)
# define S_IFMT _S_IFMT
# define S_IFDIR _S_IFDIR
# define S_IFCHR _S_IFCHR
# define S_IFBLK _S_IFBLK
# endif
# include <dirent.h>
# endif
# if defined(SVR4) || defined(SYSV)
# include <fcntl.h>
# endif
# include <sys/param.h>
# include <sys/stat.h>
# if defined(__convex__) && defined (__STDC__)
# define S_IFMT _S_IFMT
# define S_IFDIR _S_IFDIR
# define S_IFCHR _S_IFCHR
# define S_IFBLK _S_IFBLK
# endif
#endif

Expand Down
1 change: 0 additions & 1 deletion src/xvbrowse.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

#include "copyright.h"

#define NEEDSDIR
#include "xv.h"
#include <unistd.h> /* access() */

Expand Down
1 change: 0 additions & 1 deletion src/xvcut.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
*/


#define NEEDSDIR /* for stat() */
#include "copyright.h"
#include "xv.h"

Expand Down
1 change: 0 additions & 1 deletion src/xvdir.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "copyright.h"

#define NEEDSTIME /* for CheckPoll */
#define NEEDSDIR
#include "xv.h"

#include "bits/d_load"
Expand Down
1 change: 0 additions & 1 deletion src/xvfits.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* provided "as is" without express or implied warranty.
*/

#define NEEDSDIR /* for S_IRUSR|S_IWUSR */
#include "xv.h"

#define NCARDS (36)
Expand Down
1 change: 0 additions & 1 deletion src/xvimage.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
*/
/* #define ENABLE_FIXPIX_SMOOTH */ /* GRR 19980607: moved into xv.h */

#define NEEDSDIR /* for S_IRUSR|S_IWUSR */
#include "copyright.h"

#include "xv.h"
Expand Down
1 change: 0 additions & 1 deletion src/xvmgcsfx.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
* 同様に書き込み時にも問題が生じるかもしれない。
*/

#define NEEDSDIR /* for stat() */
#include "xv.h"


Expand Down
1 change: 0 additions & 1 deletion src/xvpds.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@
* This software is provided "as is" without any express or implied warranty.
*/

#define NEEDSDIR /* for S_IRUSR|S_IWUSR */
#include "xv.h"

#ifdef HAVE_PDS
Expand Down
1 change: 0 additions & 1 deletion src/xvpic2.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
*/

#define PIC2_IGNORE_UNUSED_FUNCTIONS
#define NEEDSDIR

#include "xv.h"
#include <setjmp.h>
Expand Down
1 change: 0 additions & 1 deletion src/xvps.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#include "copyright.h"

#define NEEDSDIR
#include "xv.h"

#define PSWIDE (431*dpiMult)
Expand Down
2 changes: 0 additions & 2 deletions src/xvvd.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* (virtual) directory.
*/

#define NEEDSDIR

#include "xv.h"

#ifdef AUTO_EXPAND
Expand Down

0 comments on commit 9b18a11

Please sign in to comment.