Skip to content

Commit b443bf7

Browse files
jsm222igorkorsukov
authored andcommitted
Small changes
Remove typo Refacotor changes to portable_endian.h
1 parent 1daeede commit b443bf7

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

src/app/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,12 @@ elseif(OS_IS_FBSD)
409409
# FreeBSD
410410
###########################################
411411
install(TARGETS ${EXECUTABLE_NAME} RUNTIME DESTINATION bin )
412-
install(FILES ${PROJECT_BINARY_DIR}/src/app/musescore DESTINATION bin)
412+
add_custom_target(mscore_alias ALL
413+
COMMAND echo "Creating symlink alias for mscore executable."
414+
COMMAND ln -sfv "mscore" "musescore"
415+
)
416+
install(FILES ${PROJECT_BINARY_DIR}/src/app/musescore DESTINATION bin)
417+
413418
###########################################
414419
# MacOS
415420
###########################################

thirdparty/fluidsynth/fluidsynth-2.1.4/src/external/portable_endian.h

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@
5252

5353
# include <sys/endian.h>
5454

55-
#elif defined(__NetBSD__) || defined(__DragonFly__)
56-
57-
#x include <sys/endian.h>
55+
#elif defined(__NetBSD__) || defined(__DragonFly__) || defined(__FreeBSD__)
5856

57+
# include <sys/endian.h>
58+
#ifndef __FreeBSD__
5959
# define be16toh(x) betoh16(x)
6060
# define le16toh(x) letoh16(x)
6161

@@ -64,14 +64,12 @@
6464

6565
# define be64toh(x) betoh64(x)
6666
# define le64toh(x) letoh64(x)
67-
#elif defined(__FreeBSD__)
68-
# include <sys/endian.h>
67+
#else
68+
/*__FreeBSD__*/
6969
# define __BYTE_ORDER _BYTE_ORDER
7070
# define __BIG_ENDIAN _BIG_ENDIAN
7171
# define __LITTLE_ENDIAN _LITTLE_ENDIAN
72-
73-
74-
72+
#endif
7573
#elif defined(__WINDOWS__)
7674

7775
#ifdef _MSC_VER

0 commit comments

Comments
 (0)