Skip to content

Commit

Permalink
all: rename files
Browse files Browse the repository at this point in the history
This change makes the file name convention consistent. A file for macOS,
not for iOS should have a suffix '_macos.go' rather than '_macos_darwin.go'
and/or '_darwin.go'.
  • Loading branch information
hajimehoshi committed Oct 12, 2024
1 parent 87e412c commit 027ef33
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/gamepaddb/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ func run() error {
hasGLFWGamepads: true,
},
"Mac OS X": {
filenameSuffix: "macos_darwin",
buildConstraints: "//go:build !ios",
filenameSuffix: "macos",
buildConstraints: "//go:build darwing && !ios",
},
"Linux": {
filenameSuffix: "linbsd",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build !ios
//go:build darwin && !ios

package opengl

Expand Down

0 comments on commit 027ef33

Please sign in to comment.